Solved

Calculate route on Google Maps with vb

Posted on 2008-06-25
2
1,538 Views
Last Modified: 2012-06-27
I am developing a desktop application for a customer that wants to use a "from" address and a "to" address to calculate a route for a driver.  We have success displaying the "from" address or "to" address on www.maps.google.com but cannot determine how to send the string to google to calculate the route.  Your assistance is greatly appreciated.

The following is the current code:

    Private Sub cmdMap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdMap.Click
        Process.Start("http://maps.google.com/maps?f=q&hl=en&geocode=&q=" & txtTo.Text & "+" & txtToCity.Text & "+" & txtToZip.Text)
    End Sub
0
Comment
Question by:NCSO
  • 2
2 Comments
 

Accepted Solution

by:
NCSO earned 0 total points
ID: 21871104
refund Please; here is the solution:

    Private Sub cmdMap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdMap.Click
        Process.Start("http://maps.google.com/maps?f=q&hl=en&geocode=&q=" & txtTo.Text & "+" & txtToCity.Text & "+" & txtToZip.Text & " to " & txtFrom.Text & "+" & txtFromCity.Text & "+" & txtFromZip.Text)
    End Sub
0
 

Author Comment

by:NCSO
ID: 21871137
refund Please; here is the solution:

    Private Sub cmdMap_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmdMap.Click
        Process.Start("http://maps.google.com/maps?f=q&hl=en&geocode=&q=" & txtTo.Text & "+" & txtToCity.Text & "+" & txtToZip.Text & " to " & txtFrom.Text & "+" & txtFromCity.Text & "+" & txtFromZip.Text)
    End Sub
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
git hub on ubuntu clone a git hub repo how do i find the "packed' file that it downloaded 5 74
Help me. 3 56
iSeries email authority 6 57
Sub or Function is not defined 6 30
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This is about my first experience with programming Arduino.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

803 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question