keithbruno.com

Google Maps

Connect to Google Maps API

While working on my GPS tracker web site I had the need to allow the user to enter an address and return the latitude and longitude to my application to recenter the map to that location. Thankfully, Google has a well-documented interface that allows any ASP.net program to talk to the Google Maps API, pass the information to Google and get back the information we requested.

The way this is done is by having the ASP.net program call an XML web service, pass the parameters to the web service and parse the information that comes back. You can demonstrate this process very easily by opening a web browser and entering a URL in the address bar. Try this URL:



XML Returned

Now that we know what you are trying to accomplish and what the expected results should be lets build a web page to do it. View a live working page


Below is the HTML/ASPX portion of the page.

Below is the VB.net portion of the page.