Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. Fetching Value from Google map and Retrive it to the web form

Fetching Value from Google map and Retrive it to the web form

Scheduled Pinned Locked Moved ASP.NET
csharphtmlcomjsonhelp
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Solly S
    wrote on last edited by
    #1

    I want to Fetch a particular location from google map of 5 km distance using zip code basis I am using Google Web service.It is showing the error of Invalid key . The code as follows: Dim ProxyHost As String = "192.168.0.100" Dim ProxyPort As Integer = 8080 Dim ProxyUser As String = "" Dim ProxyPassword As String = "" Dim ProxyDomain As String = "http://api.google.com/search/beta2" Dim oWebProxy As System.Net.WebProxy = New System.Net.WebProxy(ProxyHost, ProxyPort) oWebProxy.Credentials = New System.Net.NetworkCredential(ProxyUser, ProxyPassword, ProxyDomain) ' obj_wrr.Proxy = oWebProxy 'obj_wrr.Credentials = New System.Net.NetworkCredential(feedid, password) Dim s As localhost.GoogleSearchService = New localhost.GoogleSearchService s.Proxy = oWebProxy Dim r As localhost.GoogleSearchResult r = s.doGoogleSearch("", TextBox1.Text, 0, 10, False, "", False, "", "", "") Dim strFile As String = "C:\\result.html" Dim sw As StreamWriter = File.CreateText(strFile) sw.WriteLine("" & Microsoft.VisualBasic.Chr(9) & "BODY { font-family : Verdana, Geneva, Arial, Helvetica, sans-serif; font-size : 9pt; color : #000000; SCROLLBAR-FACE-COLOR: white; SCROLLBAR-HIGHLIGHT-COLOR: #003366; SCROLLBAR-SHADOW-COLOR: #003366; SCROLLBAR-3DLIGHT-COLOR: #f9f9f9; SCROLLBAR-ARROW-COLOR: #003366; SCROLLBAR-TRACK-COLOR: white; SCROLLBAR-DARKSHADOW-COLOR: #f9f9f9 }") For Each dc As localhost.DirectoryCategory In r.directoryCategories sw.Write("Category : ") sw.WriteLine(dc.fullViewableName) sw.WriteLine(" ") Next For Each re As localhost.ResultElement In r.resultElements Dim strTitle As String = "" + re.title + " " sw.WriteLine(strTitle) Dim strSnippet As String = re.snippet + " " sw.WriteLine(strSnippet) Dim strLink As String = "" + re.URL + " - " + re.cachedSize + " " sw.WriteLine(strLink) sw.WriteLine(" ") Next sw.Close() Label1.Text = TextBox1.Text + " 's web search" Dim estResults As Integer = r.estimatedTotalResultsCount Dim ldTime As Double = r.searchTime Label1.Text = "Total " + Convert.ToString(estResults) + " " + "1 - 10 seach result Total time:" + Convert.ToString(ldTime) Dim obj As Object = Nothing Dim di As DirectoryInfo = New DirectoryInfo(Environment.CurrentDirectory) Dim strFilePath As String = di.FullName + "\" + strFile WebBrowser.Navigate(strFilePath, obj, obj, obj, obj)

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups