How can I get the distance between two google.maps.LatLng points using the Mars/Moon tileset? Python/Javascript preferred, but any language would do just fine.
How can I get the distance between two google.maps.LatLng points using the Mars/Moon tileset?
Share
You can find the distance formula on http://www.movable-type.co.uk/scripts/latlong.html.
Be sure to use the correct planet radius. Most formulas assume that you use the earth, which is 6371 km. Moon and Mars have a different radius.
Also, the formulas assume that the earth (or planet) is a perfect sphere, which isn’t the case (radius towards the poles is smaller than radius towards the equator).