Class TurfClassification

java.lang.Object
com.mapbox.turf.TurfClassification

public class TurfClassification extends Object
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 Type
    Method
    Description
    static com.mapbox.geojson.Point
    nearestPoint(com.mapbox.geojson.Point targetPoint, 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 of Point geometries and returns the point from the set point list closest to the reference. This calculation is geodesic.
      Parameters:
      targetPoint - the reference point
      points - 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