public class TurfClassification
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static com.mapbox.geojson.Point |
nearestPoint(com.mapbox.geojson.Point targetPoint,
java.util.List<com.mapbox.geojson.Point> points)
Takes a reference point and a list of
Point geometries and returns the point from the
set point list closest to the reference. |
@NonNull public static com.mapbox.geojson.Point nearestPoint(@NonNull com.mapbox.geojson.Point targetPoint, @NonNull java.util.List<com.mapbox.geojson.Point> points)
Point
geometries and returns the point from the
set point list closest to the reference. This calculation is geodesic.targetPoint
- the reference pointpoints
- set list of points to run against the input point