public class TurfClassification
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static ai.nextbillion.kits.geojson.Point |
nearestPoint(ai.nextbillion.kits.geojson.Point targetPoint,
java.util.List<ai.nextbillion.kits.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 ai.nextbillion.kits.geojson.Point nearestPoint(@NonNull
ai.nextbillion.kits.geojson.Point targetPoint,
@NonNull
java.util.List<ai.nextbillion.kits.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