getDistanceToLine

open fun getDistanceToLine(    @NonNull a: Point,     @NonNull b: Point,     @NonNull p: Point): Double

* Returns the distance from a line (given by it's endpoints) to a point

Return

The minimum distance between the line and the given point in meters.

Parameters

a

line endpoint 1

b

line endpoint 2

p

The point to measure the distance to