getSquaredDistanceToClosestEdge

open fun getSquaredDistanceToClosestEdge(@NonNull latLng: LatLng): Float

Return

The distance from the given point to this polygon's closest edge or -1 ifthe given point is outside this polygon's bounding box

Parameters

latLng

open fun getSquaredDistanceToClosestEdge(@NonNull point: Point): Float

Return

The distance from the given point to this polygon's closest edge or -1 ifthe given point is outside this polygon's bounding box

Parameters

point