distanceToPolygon

fun distanceToPolygon(pointCoordinates: LngLatAlt, polygon: Polygon): Double

Distance to a Polygon from current location.

Return

The closest distance of the point to the Polygon

Parameters

pointCoordinates

LngLatAlt of current location

polygon

Polygon that we are working out the distance from