get Distance To Feature Collection
fun getDistanceToFeatureCollection(currentLocation: LngLatAlt, featureCollection: FeatureCollection): FeatureCollection
Given a Feature Collection and location this will calculate the nearest distance to each Feature, and return a Feature Collection that contains the distance_to data for each Feature.
Return
a Feature Collection with the "distance_to" from the current location as a foreign member in meters for each Feature.
Parameters
current Location
Current location as LngLatAlt.
feature Collection