Has been plagued by a problem is when using the Baidu Map API for anti-geocoding search, the final result only contains "boring" city streets and other information, for the information of customers, this "xx province xx xx district xx Road xx No." The format of information often can not give the customer an intuitive concept, can not meet customer needs. Anti-Baidu map, fast taxi and other lbs applications, they can provide users with detailed information about the place name, so that customers at a glance, how they do it?
So in the view of the Baidu map of the document found in the Reversegeocoderresult class Getpoilist method, the method can return a list<poiinfo>, that is, the surrounding poi points of interest, The so-called POI is the "detailed place name" we want. It then uses the Result.getpoilist (). Get (0) method to get the POI in the POI list that best matches the current location and convert it to a string to return to the user, thus resolving the map to show the detailed location, rather than the "useless" street information.
It is also evident that reading documents is important for programming ....
Baidu Map API to get detailed place name method