[OSM-dev] Code to find distance with JOSM eastNorth

Frederik Ramm frederik at remote.org
Wed Jan 10 17:49:36 GMT 2007


On 9 Jan 2007 at 23:11, matthew-osm at newtoncomputing.c wrote:
> 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.

You could alway simply use josm's conversion function:


and then apply whatever formula works with lat/lon values. But for  
the standard Epsg4326 "projection", east == lon and north == lat.


Frederik Ramm  ##  eMail frederik at remote.org  ##  N49°00.09' E008°23.33'

More information about the dev mailing list