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