Package com.mapbox.turf
Class TurfClassification
java.lang.Object
com.mapbox.turf.TurfClassification
Methods found in this class are meant to consume a set of information and classify it according
to a shared quality or characteristic.
- Since:
- 3.0.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic com.mapbox.geojson.PointnearestPoint(com.mapbox.geojson.Point targetPoint, List<com.mapbox.geojson.Point> points) Takes a reference point and a list ofPointgeometries and returns the point from the set point list closest to the reference.
-
Method Details
-
nearestPoint
@NonNull public static com.mapbox.geojson.Point nearestPoint(@NonNull com.mapbox.geojson.Point targetPoint, @NonNull List<com.mapbox.geojson.Point> points) Takes a reference point and a list ofPointgeometries and returns the point from the set point list closest to the reference. This calculation is geodesic.- Parameters:
targetPoint- the reference pointpoints- set list of points to run against the input point- Returns:
- the closest point in the set to the reference point
- Since:
- 3.0.0
-