Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calculate driving distance

Status
Not open for further replies.

mwa

Programmer
Jul 12, 2002
507
US
I have been tasked with creating a web based travel reimbursement program for our company. The only problem I'm having is calculating the driving distance based on two addresses (from point A to point B). I have found many examples using latitude/longitude to figure out the distance from the center of one city to the center of another city, but that won't work for us. I have looked into MapPoint Web service and registered for the 45 day trial subscription, but my .net skills are limited and I am under a time crunch (go figure). Are there any other solutions, similar to MapPoint that would fit my needs?

mwa
<><
 
An easier solution would be to build your own table of ZIP code records, assigning it with latitude and longitude fields. You can then do the distance calculation between say ZIP code A to ZIP code B. I believe ZIP code is more accurate than using cities especially when point A and point B is within the same city.
 
I agree with you, but this still won't calculate driving distance. It will only calculate a straight line distance.

I need actual driving miles. I know the technology exists because if I go to mapquest.com and enter my address and a destination address, it will calculate the total driving miles.

Any other ideas?

mwa
<><
 
*evil laugh* web scrape it from mapquest? *BWUAHAhahaha*

just kidding :)

might want to take a look @ these :

*** Direct Connectivity available for VB and C++ and asp is largely grounded in VB



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top