getDistanceToFeatureCollection

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

currentLocation

Current location as LngLatAlt.

featureCollection