[OSM-dev] Code to find distance with JOSM eastNorth
matthew-osm at newtoncomputing.co.uk
matthew-osm at newtoncomputing.co.uk
Tue Jan 9 23:11:44 GMT 2007
Hi,
Similar to Nick's question, but not the same ;-).
I'm trying to work out how to calculate the great circle distance between two
nodes in JOSM, preferably using eastNorth coordinates. It seems like it should
be quite easy - I think eastNorth coords are just angles in radians. Therefore
it should be calculate the angle between the two nodes, and then multiply my
6372797 (radius of earth in metres). However, my maths gets a bit stuck here.
Searching the Internet seems to imply that I should be using the Haversine
Formula, but that is for Lat/Lon, not JOSM's eastNorth, from what I can tell.
Any help would be appreciated!
Thanks,
--
Matthew
More information about the dev
mailing list