Package-level declarations

Types

Link copied to clipboard

Functions

Link copied to clipboard
fun nearestPoint(target: Point, featureCollection: FeatureCollection): Point
fun nearestPoint(target: Point, points: List<Point>): Point
fun nearestPoint(target: Position, points: List<Point>): Point

Takes a target Point and a List of Point geometries and returns the point from the list closest to the reference. This calculation is geodesic.

Link copied to clipboard
fun nearestPointFeature(target: Point, featureCollection: FeatureCollection, units: Units = Units.Kilometers): Feature<Point>
fun nearestPointFeature(target: Point, points: List<Point>, units: Units = Units.Kilometers): Feature<Point>
fun nearestPointFeature(target: Position, points: List<Point>, units: Units = Units.Kilometers): Feature<Point>

Takes a target Point and a List of Point geometries and returns the point from the list closest to the reference. This calculation is geodesic.