The latitude and longitude can not be directly converted to the accurate cognition of human, need to display text information.
Currentposition.append ("Address:"). Append (Location.getaddrstr ()). Append ("\ n"); LOG.D ("Map Address", location.getaddrstr () + ""); Currentposition.append ("Country:"). Append (Location.getcountry ()). Append ("\ n"); LOG.D ("Map Coutntry", location.getcountry () + ""); Currentposition.append ("province:"). Append (Location.getprovince ()). Append ("\ n"); Currentposition.append ("City:"). Append (Location.getcity ()). Append ("\ n"); Currentposition.append ("zone:"). Append (Location.getdistrict ()). Append ("\ n"); Currentposition.append ("street:"). Append (Location.getstreet ()). Append ("\ n");
Very practical and interesting features, easy to stimulate learning interest.
Android LBS Baidu Map (reference: "First line Code" second Edition (Guo Lin) 11.3.4 Display the location information to understand: Accurate text address)