Hi, My application requires to find out the lat/long of an address (this can be a country as well) using c# when javascript is disabled in my browser. I am using the geocode url as
http://maps.google.com/maps/geo?q=GB&output=xml&sensor=false&oe=utf-8&key=<key> As i have specified the output type as xml, I expect the response to be a well formed xml. But when i try to load the resonse in an xml document, it throws the error Data at the root level is invalid. Line 1, position 1.". When i hit the same url in a fresh browser, it does not display an xml. Instead it asks me to save/open a "geo" file that contains text in the json format like { "name": "GB", "Status": { "code": 200, "request": "geocode" }, "Placemark": [ { "id": "p1", "address": "United Kingdom", "AddressDetails": {"Country": {"CountryNameCode": "GB","CountryName": "United Kingdom"},"Accuracy": 1}, "ExtendedData": { "LatLonBox": { "north": 60.8616500, "south": 49.1626564, "east": 1.7689260, "west": -8.6626630 } }, "Point": { "coordinates": [ -3.4359730, 55.3780510, 0 ] } } ] } The same happens if I specify the format as csv. Am I missing anything? Please help. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
