POI Range
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 SpotCSTA
Currents StationTSTA
Tide Station
-
radius
Set search radius, the value range is 1-50, in kilometers. 5 by default. -
number
Number of the results in response, from 1 to 20, 10 is the default. -
lang
Multi-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 |
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 time1 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 |