Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 Computing distance with Latitude/Longitude info
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 December 2004 :  00:26:43  Show Profile  Visit dayve's Homepage
Does someone have or know the math needed to compute the distance between 2 places "as the crow flies" with the latitude/longitude coordinates known for each location?

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 12 December 2004 :  03:10:38  Show Profile
found a couple of places:

This site: http://jan.ucc.nau.edu/~cvm/latlongdist.html

says they got the formula from here: http://www.mathforum.com/library/drmath/view/51711.html

and here is the code samples: http://jan.ucc.nau.edu/~cvm/latlon_formula.html


This is from Aspin.com: http://www.aspin.com/func/content?id=5979810
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 December 2004 :  13:23:30  Show Profile  Visit dayve's Homepage
Thanks Richard... looks like I'll be able to use what you've found. I'm kind of surprised that there is no definite script already made using ASP or ASP.NET ... gives me even more motivation to do it now!

Go to Top of Page

Spooky
Development Team Member

New Zealand
320 Posts

Posted - 12 December 2004 :  13:51:10  Show Profile  Visit Spooky's Homepage
Also check out http://www.aspfaq.com/show.asp?id=2527
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 12 December 2004 :  14:21:08  Show Profile  Visit dayve's Homepage
thanks.. I also came across this

http://www.codeproject.com/dotnet/zipcodemapping.asp

for anyone interested, they link to a free version of the zip code database with lat/long info... something I had to pay for, but I'm not sure how much information the free one has compared to mine.

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.27 seconds. Powered By: Snitz Forums 2000 Version 3.4.07