Imports System.Data
Imports System.Xml
Imports System.Net
Partial Class Testing
Inherits System.Web.UI.Page
Private Function GetLocation() As DataTable
'Create a WebRequest
Dim rssReq As WebRequest = WebRequest.Create("http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&street=1 cedar point dr&city=sandusky&state=oh")
'Create a Proxy
Dim px As New WebProxy("http://local.yahooapis.com/MapsService/V1/geocode?appid=YD-9G7bey8_JXxQP6rxl.fBFGgCdNjoDMACQA--&street=1 cedar point dr&city=sandusky&state=oh", True)
'Assign the proxy to the WebRequest
rssReq.Proxy = px
Try
'Get the WebResponse
Dim rep As WebResponse = rssReq.GetResponse()
'Read the Response in a XMLTextReader
Dim xtr As New XmlTextReader(rep.GetResponseStream())
'Create a new DataSet
Dim ds As New DataSet()
'Read the Response into the DataSet
ds.ReadXml(xtr)
Return ds.Tables(0)
Catch
Return Nothing
End Try
End Function
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim dt As DataTable = GetLocation()
Me.GridView1.DataSource = dt
Me.GridView1.DataBind()
Me.GMap1.DataSource = dt
Me.GMap1.DataBind()
End Sub
End Class
To start with google maps basics, I will recommend to you this custom ASP.net control that has a free version you can use without restrictions:
http://googlemaps.subgurim.net/
With this control you can easy & fast begin to show maps, locate icons where you want, paint icons, do address searches, etc. without the need to learn the Google Maps API.
Hope that helps.