-BKN
Not sure about a third-party library, but all you need are two latitude
and longitude pairs (that you can get from any number of companies that
supply zipcode to lat/lon numbers) and the great circle equation.
There's a javascript based page here:
http://williams.best.vwh.net/gccalc.htm
Simply plug your two coordinates in and get a distance.
Eric
Most data-entry people don't know the latitude/longitude of a given
address...
-BKN
> Most data-entry people don't know the latitude/longitude
> of a given address...
So let your program look it up
http://www.google.com/search?as_q=zip-code+latitude+longitude
Regards, JohnH
Yahoo has an address geocoding service. I've tested it but can't tell
you anything about how dependable it is for production use:
http://developer.yahoo.com/maps/rest/V1/geocode.html
Like Eric said, the lat/long output of this can be fed into a great
circle calculator to find the distance.
--
Rate Limit
The Geocoding service is limited to 5,000 queries per IP address per day.
If you can use a desktop application, there are solutions using Microsoft
MapPoint and lots of support here:
Doug
"Johannes Bjerregaard" <jozzb@hotmail> wrote in message
news:44bd4083$1...@newsgroups.borland.com...
Trying to figure GEOCode from an address though is a step I want to avoid.
And Maps.Yahoo doesn't do a distance from one address to another (it's in
their FAQ). MapQuest does however, so I think I'll use their OpenAPI. It
does have a daily query limit, but if we surpass that we can just upgrade to
the unlimited version.
-BKN
The term "geocoding" refers to the process of obtaining the lat/long of
an address, so it's something that has to be done if you want to find
the distance between two addresses. Of course, it sounds like MapQuest
has it all wrapped up for you. Good luck.
--