nearestPointOnLine

fun nearestPointOnLine(line: LineString, point: Position, units: Units = Units.Kilometers): NearestPointOnLineResult

Finds the closest Position along a LineString to a given position

Return

The closest position along the line

Parameters

line

The LineString to find a position along

point

The Position given to find the closest point along the line


fun nearestPointOnLine(lines: MultiLineString, point: Position, units: Units = Units.Kilometers): NearestPointOnLineResult

Finds the closest Position along a MultiLineString to a given position

Return

The closest position along the lines

Parameters

lines

The MultiLineString to find a position along

point

The Position given to find the closest point along the lines