- Re: Geographic algorithms
- Posted by Vlad Tepes on June 27th, 2003
Enigma <kajolishot@hotmail.com> wrote:
Use your algorithm to get this right, but if the towns are close,
a rough approximation might suffice:
360 degrees =~ 40 000 km => 1 degree = 111 km
1 minute = 1.85 km
1 second = 31 m
Calculate the difference in distance (d) in latitute (y) and longitude
(x) and use the pythagorean (d*d = x*x + y*y) to calculate the distance
between the two towns.
Or, you could use this to compare lat/longitude between towns and
eliminate calculating the expensive great circle distance for towns that
clearly would be too far away.
--
Vlad
Similar Posts
- Let's discuss XP memory management (CUSTOM pagefile, algorithms, etc). (Performance/Maintainence) by Jim Lewandowski
- Open Geographic Datastore Interface 3.1.2 Development (Software & Applications) by Gordon Darling
- Wallpaper generated by mathematical algorithms at regular intervals (Software & Applications) by Jonathan Aquino
- Genetic Algorithms & Security (Computer Security) by Bharat Bhushan

