Package-level declarations

Types

Link copied to clipboard

The nearest point found on a route geometry to a queried point.

Functions

Link copied to clipboard
fun nearestPointOnGeometryCheapRuler(route: DirectionsRoute, point: Point, startIndex: Int, endIndex: Int): NearestPointOnRoute?

Find the nearest point on the route geometry to point, searching only the window of vertices [startIndex, endIndex] of geometry_numeric. Pass startIndex=0 and endIndex=last to search the whole route. distanceAlongMeters in the result is measured from startIndex.

Link copied to clipboard
fun nearestPointOnGeometryEcef(route: DirectionsRoute, point: Point, startIndex: Int, endIndex: Int): NearestPointOnRoute?

Find the nearest point on the route geometry to point, searching only the window of vertices [startIndex, endIndex] of geometry_numeric. Pass startIndex=0 and endIndex=last to search the whole route. distanceAlongMeters in the result is measured from startIndex.

Link copied to clipboard
fun nearestPointOnGeometryTurf(route: DirectionsRoute, point: Point, startIndex: Int, endIndex: Int): NearestPointOnRoute?

Find the nearest point on the route geometry to point, searching only the window of vertices [startIndex, endIndex] of geometry_numeric. Pass startIndex=0 and endIndex=last to search the whole route. distanceAlongMeters in the result is measured from startIndex.