nearest_point library
Functions
-
nearestPoint(
Feature< Point> targetPoint, FeatureCollection<Point> points) → Feature<Point> - Takes a reference Point and a FeatureCollection of Features with Point geometries and returns the point from the FeatureCollection closest to the reference. This calculation is geodesic. For example: