getDistanceToFeature

fun getDistanceToFeature(currentLocation: LngLatAlt, feature: Feature?): Double

Given a Feature and a location this will calculate the nearest distance to it

Return

The distance between currentLocation and feature

Parameters

currentLocation

Current location as LngLatAlt

feature