distance To Region
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
point Coordinates
LngLatAlt of current location
outer Ring
The outerRing of the Polygon that we are working out the distance from