开发者

Distance between two points on Moon and Mars

How can I get the distance between two google.maps.LatLng points using the Mars/Moon tileset? Python/Javascript 开发者_JAVA技巧preferred, but any language would do just fine.


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).


Patrick's answer is an approximation. This is true for the Earth as well, but more so with the Moon and Mars. Not only do you have the polar flattening, but both are decidedly lopsided. Being smaller, gravitational forces do not as strongly maintain the perfect spherical shape. Hence mascons on the Moon, and volcanoes on Mars cause some huge deviations to the geoid (gravitational equipotential) and 'real' surface.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜