Private string getaddr (string latitude, string longbench) {string ADDR = ""; // can it also be a http://maps.google.cn/maps/geo? Output = CSV & Key = abcdef & Q = % s, % s, but the parsed address is an English address // key. You can write a key = ABC // output = CSV, it can also be XML or JSON, but the data returned by using CSV is the most concise and convenient to parse string url = string. format ("http://ditu.google.cn/maps/geo? Output = CSV & Key = abcdef & Q = % s, % s ", latitude, longpolling); Url myurl = NULL; urlconnection httpsconn = NULL; try {myurl = new URL (URL);} catch (malformedurlexception e) {e. printstacktrace (); return NULL;} Try {httpsconn = (urlconnection) myurl. openconnection (); If (httpsconn! = NULL) {inputstreamreader insr = new inputstreamreader (httpsconn. getinputstream (), "UTF-8"); bufferedreader BR = new bufferedreader (insr); string data = NULL; If (Data = BR. readline ())! = NULL) {// system. out. println (data); string [] retlist = data. split (","); If (retlist. length> 2 & <200 ". equals (retlist [0]) {ADDR = retlist [2]; ADDR = ADDR. replace ("\" "," ") ;}else {ADDR =" ";}} insr. close () ;}} catch (ioexception e) {e. printstacktrace (); return NULL;} return ADDR ;}