nearestPointOnLine
fun nearestPointOnLine(line: LineString, point: Position, units: Units = Units.Kilometers): Feature<Point>
Finds the closest Position
along a LineString
to a given position
Return
Feature
with Feature.properties
:
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): Feature<Point>
Finds the closest Position
along a MultiLineString
to a given position
Return
Feature
with Feature.properties
:
Parameters
lines
The MultiLineString
to find a position along
point
The Position
given to find the closest point along the lines