Example how to use the JavaScriptGeodeticLibrary
Click two times on the map at different location, to get the distance between these locations.