get Distance To Feature
fun getDistanceToFeature(currentLocation: LngLatAlt, feature: Feature, ruler: Ruler): PointAndDistanceAndHeading
Given a Feature and a location this will calculate the nearest distance to it
Return
The a PointAndDistance object which contains the distance between currentLocation and feature and the point to which the distance is measured.
Parameters
current Location
Current location as LngLatAlt
feature