473,382 Members | 1,421 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

What is the correct URL for Bing Maps directions

I have an access 2007 database with a command button (cmdYahoo) on a form. It takes addresses from two text boxes and opens a yahoo map with directions. It works fine.
Here’s the code –
[Private Sub cmdYahoo_Click()
Const URL_1 As String = _
"http://maps.yahoo.com/dd_result.php?q1=@ADDR@&q2=@DEST@"
Dim addr As String
Dim url As String
addr = TxStreetZip
addr = Replace$(addr, " ", "+")
addr = Replace$(addr, ",", "%2c")
dest = TxDestAdDestZip
dest = Replace$(dest, " ", "+")
dest = Replace$(dest, ",", "%2c")
url = Replace$(URL_1, "@ADDR@", addr)
url = Replace$(url, "@DEST@", dest)
ShellExecute ByVal 0&, "open", url, _
vbNullString, vbNullString, SW_SHOWMAXIMIZED
End Sub]

Now I am trying to do the same for Bing Maps, using the same code but different URL. The code seems to be working but I can’t get the URL right for directions. I can do it for one address (where=) "http://www.bing.com/maps/?v=2&where1=@ADDR@".

I tried http://www.bing.com/maps/explore/?rtp=@ADDR@~@DEST@ but does not work.

Does anyone know the right URL?
Sep 26 '10 #1
0 1324

Sign in to post your reply or Sign up for a free account.

Similar topics

24
by: Alf P. Steinbach | last post by:
The eighth chapter (chapter 2.1) of my attempted Correct C++ tutorial is now available, although for now only in Word format -- comments welcome! Use the free & system-independent Open Office...
21
by: Helge Jensen | last post by:
I've got some data that has Set structure, that is membership, insert and delete is fast (O(1), hashing). I can't find a System.Collections interface that matches the operations naturally offered...
6
by: dubing | last post by:
Hello everyone, If media is not explicitly specified in link as shown below, what's the default media supposed to be, screen or all? I thought it should be 'all'. <link rel="stylesheet"...
6
by: BJörn Lindqvist | last post by:
Hello, I'm looking for an algorithm to project "MUD maps" such as the following map: http://www.aww-mud.org/maps/MUD_Maps/Caerin-colour.jpg MUD:s consists of rooms, each rooms has up to four...
3
by: magmike | last post by:
I'd like to set up an event procedure that when the city field is double clicked they are sped away to a google map showing directions and distance from our city (nashville) to the client city. The...
4
by: Barbiturico76 | last post by:
Hi guys, anybody knows if it is possible to generate a <div id="myMap" style="width: 400; height:300; left: 0px; top: 0px;" /> inside your intranet site, to represent a programmatically...
0
by: eschneid | last post by:
I noticed that when you chose the printable driving directions in Google Maps that every other step is shaded in gray. If you chose to print it, the gray appears independently of the browser...
4
by: ursular | last post by:
Hi all, I'm new to JavaScript and Google Maps API. I got some problems but I cannot find out the reason. Hope someone can help me. What I tried to do: I'm trying to develop an application in...
3
by: vbanewbie2 | last post by:
I was wondering is it possible to have a user input data via userform and have the address that the user inputted connect to say yahoo maps so that it can give them directions. can this be done?
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.