distanceToRegion

fun distanceToRegion(pointCoordinates: LngLatAlt, outerRing: LineString, ruler: Ruler, nearestPoint: LngLatAlt? = null): Double

Distance to a Polygon from current location.

Return

The closest distance of the point to the Polygon

Parameters

pointCoordinates

LngLatAlt of current location

outerRing

The outerRing of the Polygon that we are working out the distance from