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. Retriving value from google map

Retriving value from google map

Scheduled Pinned Locked Moved ASP.NET
csharpvisual-studio
5 Posts 3 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.
  • A Offline
    A Offline
    Aashutoshkumar
    wrote on last edited by
    #1

    i am using an application in which i have a google map in which i want to retrive a movie theatres within in a particular distance(5 to 10 Km.) and location is based on the zipcode of that particular area. i am using visual studio 2003. Aashutosh kumar

    P 1 Reply Last reply
    0
    • A Aashutoshkumar

      i am using an application in which i have a google map in which i want to retrive a movie theatres within in a particular distance(5 to 10 Km.) and location is based on the zipcode of that particular area. i am using visual studio 2003. Aashutosh kumar

      P Offline
      P Offline
      perlmunger
      wrote on last edited by
      #2

      The reason questions like this don't get answered is because you are asking for someone to provide you with an entire solution to your problem. You need to break out your problem into smaller segments and ask specific questions. What would you think if I were to log into Code Project and say "Can someone provide me with source code for a financial application similar to Quickbooks?" You would think that was a ridiculous request. Well, your request may not be as ridiculous, but nobody here is going to write your code for you. Google's API is well documented and there are other tools for doing geo-location. Try to do what you want first and then ask specific questions. Also, this is an ASP .NET forum. The question you are wanting an answer for would be better categorized in the Web Development forum since it is not specific to ASP .NET. -Matt

      ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

      S 1 Reply Last reply
      0
      • P perlmunger

        The reason questions like this don't get answered is because you are asking for someone to provide you with an entire solution to your problem. You need to break out your problem into smaller segments and ask specific questions. What would you think if I were to log into Code Project and say "Can someone provide me with source code for a financial application similar to Quickbooks?" You would think that was a ridiculous request. Well, your request may not be as ridiculous, but nobody here is going to write your code for you. Google's API is well documented and there are other tools for doing geo-location. Try to do what you want first and then ask specific questions. Also, this is an ASP .NET forum. The question you are wanting an answer for would be better categorized in the Web Development forum since it is not specific to ASP .NET. -Matt

        ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

        S Offline
        S Offline
        Solly S
        wrote on last edited by
        #3

        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)

        P 1 Reply Last reply
        0
        • S Solly S

          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)

          P Offline
          P Offline
          perlmunger
          wrote on last edited by
          #4

          Did you sign up for a Google Maps API key here: http://www.google.com/apis/maps/[^]? If so, you have to make sure you are using the key from the server that you typed into the API key signup page. If you are running it from your local system, then you need to generate a key for "localhost". -Matt

          ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

          S 1 Reply Last reply
          0
          • P perlmunger

            Did you sign up for a Google Maps API key here: http://www.google.com/apis/maps/[^]? If so, you have to make sure you are using the key from the server that you typed into the API key signup page. If you are running it from your local system, then you need to generate a key for "localhost". -Matt

            ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

            S Offline
            S Offline
            Solly S
            wrote on last edited by
            #5

            Yes I sign up for a Google Maps API key for local host .But Same Error . Is there any other option to fetch a particular location from Map using zip code of 5 km Distance

            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