distanceToLineString

fun distanceToLineString(pointCoordinates: LngLatAlt, lineStringCoordinates: LineString, nearestPoint: LngLatAlt? = null): Double

Distance to a LineString from current location.

Return

The distance of the point to the LineString

Parameters

pointCoordinates

LngLatAlt of current location

lineStringCoordinates

LineString that we are working out the distance from