Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Calculate route on Google Maps with vb

Posted on 2008-06-25
2
Medium Priority
?
1,560 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This article will inform Clients about common and important expectations from the freelancers (Experts) who are looking at your Gig.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
Starting up a Project
Suggested Courses

718 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