nearestPoint

fun nearestPoint(target: Position, points: List<Point>): Point
fun nearestPoint(target: Point, 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.

Parameters

target

the reference coordinates

points

against input point set


fun nearestPoint(target: Point, featureCollection: FeatureCollection): 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.

Parameters

target

the reference coordinates

featureCollection

against input point set. At least one feature must be of instance Point