POI Range

Platform: API iOS Android

POI Range Android SDK provides the ability to query all POI information within a specified area.

Interface Code Interface Class
getGeoPoiRange POI Range GeoPoiBean

Parameter

  • location(required)The comma-separated longitude and latitude (decimal, up to 2 decimal places) of the location to be queried. For example: 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
  • radiusSet search radius, the value range is 1-50, in kilometers. 5 by default.
  • numberNumber of the results in response, from 1 to 20, 10 is the default.
  • langMulti-language, default Chinese, if data does not match the language you set, it will return in English or its native language. Language parameter please refer to Language

Sample Code

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

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

Properties

Properties of GeoPoiBean

Property Description Example
getCode Status code, please refer to Status Code Code
getPoiList City data List<Poi>

Refer

Property Description Example
getSourcesList Data source and other statements qweather.com
getLicenseList Data license commercial license

Poi

Property Description Example
getName POI name Nanshan District
getId Location ID 101280604
getLon Longitude of the POI 22.53122
getLat Latitude of the POI 113.92942
getAdm2 Name of the superior administrative division of the POI Shenzhen
getAdm1 The first-level administrative region to which the POI belongs Guangdong Province
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