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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Google Maps and Windows App

Status
Not open for further replies.

aTekTipsUser

Programmer
Nov 8, 2004
68
US
How can I use the Google maps to return the mileage between two points? I am actually going to compare multiple addresses to find the closest address to a point and would like to store this information in a database. This is not a web page, but a windows application. Any help would be greatly appreciated.

Thanks in advance!
 
make a webrequest to the GoogleMaps API. depending on how the information is returned calcualte the distance.

Assuming you request directions and the returning xml/json has parts like a collection of step (road, distance, direction)
iterate over the steps and add the distances.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top