Other great resources: Official JS API docs, Scripting Forum
distBetweenTwoPoints()
Returns the straight-line distance between two points on the map...
This article is in need of technical review - returned distance seems to have been in world coords in 3.1.0 and earlier.
Â
Â