11
votes
3answers
2k views

Calculating the distance between a point and a virtual line of two lat/lngs

Please refer to the example and corresponding image. I would like to achieve the following: provide two locations (lat/lng), which are shown below as A and B. From this, a virtual line would be drawn ...