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

code to link for mapquest directions from user address table 1

Status
Not open for further replies.

fr2

Programmer
May 13, 2008
45
US
I have a user database .. with address, city, state information. I want to add a "Directions" link (url) on my VB6 form to Mapquest to automatically display directions from my office to the user address selcted from the User database.

I hear Mapquest website has code to do this. I searched and could not find. I have searched our forum also but the answer is apparent to me.

Is there a sample code I could use or modify for VB6. I am sure someone has done something similar.

Thanks!
 
This actually looks pretty easy (I didn't know that before looking in to it). [smile]

The trick is to open up the user's default browser with a certain link. Building the link is pretty easy.

Suppose you want to calculate directions from:

101 N Main St
Anytown, NY 12345

to:

2020 W Blah St
Someplace, CA 54321

You can calculate the direction by navigating to the following URL"

[ignore][/ignore]

Also, take a look here to see how to open a web browser from your app.
thread222-1317538



-George

"The great things about standards is that there are so many to choose from." - Fortune Cookie Wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top