//webclient client object
WebClient client = new WebClient();
string url = "/maps/api/geocode/xml?latlng=" + latitude + "," + longitude + "&language=zh-CN&sensor=false";//Request address
= Encoding.UTF8;//Encoding format
string responseTest = (url);
//Download xml response data
string address = "";//Return address
XmlDocument doc = new XmlDocument();
//Create XML document object
if (!(responseTest))
{
(responseTest);//Load xml string
//Query status information
string xpath = @"GeocodeResponse/status";
XmlNode node = (xpath);
string status = ();
if (status == "OK") {
//Query detailed address information
xpath = @"GeocodeResponse/result/formatted_address";
node = (xpath);
address = ();
//Query Regional Information
XmlNodeList nodeListAll = ("GeocodeResponse/result");
XmlNode idt = nodeListAll[0];
XmlNodeList idts = ("address_component[type='sublocality']");
//address_component[type='sublocality'] means filtering all related child nodes of type='sublocality';
XmlNode idtst = idts[0];
string area = ("short_name").InnerText;
address = address + "," + area;
}
}