POI Lookup

Platform: API iOS Android

POI Lookup API provides basic information of POI(scenic spot, tide stations, currents stations, etc.)

Interface Code Interface Class
getGeoPoiLookup POI lookup GeoPoiBean

Parameter

  • location(required)The location to be queried, support text, LocationID, comma-separated longitude and latitude (decimal, up to 2 decimal places), Adcode(Chinese cities only). For example: location=beijing or location=116.41,39.92
  • type(required)Choose to search for a certain type of POI.
    • scenic Scenic Spot
    • CSTA Currents Station
    • TSTA Tide Station
  • citySearch for POI within a given city. The city name can be text or the city’s LocationID.
    The city name is an exact match. It is recommended to use LocaitonID. If the text cannot be matched, the data returned will be empty.
  • numberNumber of the results in response, from 1 to 20, 10 is the default.
  • langMulti-language setting, please see Language to find out how our multi-language works and how to set up.

Sample Code

QWeather.getGeoPoiLookup(Context context, String location, String city, int number, Type type, Lang lang, final OnResultGeoPoiListener listener);

QWeather.getGeoPoiLookup(Context context, String location, Type type, final QWeather.OnResultGeoPoiListener listener);

Properties

Properties of GeoPoiBean

Property Description Example
getCode See Status Code 200
getPoiList City data List<Poi>

Refer

Property Description Example
getSourcesList Data source and other statements QWeather
getLicenseList Data license QWeather Developers License

Poi

Property Description Example
getName POI name Beijing Zoo
getId Location ID 10101020006A
getLon Longitude of the POI 116.33000
getLat Latitude of the POI 39.93000
getAdm2 Name of the superior administrative division of the POI Beijing
getAdm1 The first-level administrative region to which the POI belongs Beijing
getCountry Country name of the POI China
getTz Timezone of the POI Asia/Shanghai
getUtcOffset The number of hours offset between local time and UTC time, refer to UTC-Offset +08:00
getIsDst Is the location currently observing Daylight Saving time
1 in daylight saving time
0 not in daylight saving time
0
getType POI type scenic
getRank Location Rank 10
getFxLink Responsive web page of this location, easy to embed in your website or APP https://www.qweather.com