Hello Andrew, Please see the code..
********************************************* string strKey = "ABQIAAAAbp8R-7Rpvj1zHV51AIAi6xSLCAQiHG74FOEuXPRKSnHF7mndwBQf0jVI6NXkmEBiMiyxdMIoFGY9gQ"; //Address string strAddress = "Pune+Maharashtra+India"; ////Create a path string with address and api key string sPath = "http://maps.google.com/maps/geo?q=" + strAddress + "&output=csv&key=" + strKey; WebClient client = new WebClient(); client.Proxy = new WebProxy(" ------ my proxy name -----", true, new string[0], CredentialCache.DefaultNetworkCredentials); string[] eResult = client.DownloadString(sPath).ToString().Split(','); ********************************************** This is throwing exception as "Page Not found (404)" Can you help me further to get the result in "eResult" array ? Regards, - Kailas. On Wed, Mar 18, 2009 at 5:09 PM, Andrew Leach <[email protected] > wrote: > > On Mar 18, 11:04 am, Kailas <[email protected]> wrote: > > Hello, > > > > I am novice user for google map API. I want to use google APIs in my > > C# form based application. For that I have registered a key using a > > dummy site name as "http://www.mysite.com". > > I think the way it's envisaged that the API can be used in an > application is by including a browser control. You then program the > control, possibly making use of a remote site (in which case the pages > on that server should have their own key). > > > I am trying to access google APIs using a web request but I am getting > > an error as "(404) Page not found". > > 404 means that your web request is asking for a non-existent page/ > script. > > > I feel the way I am using the key might be a problem but cant figure > > out exactly what is happening. Could anybody help me to get a valid > > key ? > > Not without more details of how you intend to use it. That's not an > invitation to post code. > > Andrew > > > -- Regards, - Kailas --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/Google-Maps-API?hl=en -~----------~----~----~----~------~----~------~--~---
