Last post Jun 01, 2011 05:30 PM by smirnov
Mar 29, 2011 03:14 AM|abhishek0410|LINK
i am trying to get the longtiude and latitude from google api in the format of json or xml. i wrote the code upto :
string address = "manpada,Thane,maharashtra,India";
string url = "http://maps.google.com/maps/geo?q=" + HttpContext.Current.Server.UrlEncode(address) + "&output=json&oe=utf8&sensor=false&key=ABQIAAAA1WLQEMFU-fr0L9LGYiFzRRRE03srPAqbG1ZoqWUmRFFepfJD8BSjPgyQisG2T6pPbX_c0s0MOs5vqw";
var req = WebRequest.Create(url);
var response = (HttpWebResponse)req.GetResponse();
after this what to write to get longtiude and latiude and i am kinds interested in what all data is returned. so i would like see that too.
Can somebody guide me????
Jun 01, 2011 05:30 PM|smirnov|LINK
Look at this example:
You can also switch to xml format using "&output=xml" in the querystring. In this case you can read result as xml data