POI Lookup
Endpoint#
GET /geo/v2/poi/lookupParameters#
Query parameters
-
location requiredstringThe location to be queried, support location name, LocationID or comma-separated longitude and latitude (decimal, up to 2 decimal places), LocationID can be obtained by GeoAPI. Example:
location=beijingorlocation=101010100orlocation=116.41,39.92 -
type requiredstringChoose to search for a certain type of POI.
scenicfor Scenic Spot,TSTAfor Tide Station -
citystringSearch 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.
-
numberintegerNumber of the results in response, from 1 to 20, 10 is the default.
-
langstringLanguage setting. See Language for behavior, configuration, and data availability
Request example#
curl -X GET --compressed \
-H 'Authorization: Bearer your_token' \
'https://your-api-host/geo/v2/poi/lookup?location=116.41%2C39.92&type=scenic'
Replace your_token and your_api_host with your JWT Authentication and API Host
Response#
{
"code": "200",
"poi": [
{
"name": "Nanluoguxiang Alley",
"id": "10101010005A",
"lat": "39.93000",
"lon": "116.40000",
"adm2": "Beijing",
"adm1": "Beijing",
"country": "China",
"tz": "Asia/Shanghai",
"utcOffset": "+08:00",
"isDst": "0",
"type": "scenic",
"rank": "86",
"fxLink": "https://www.qweather.com"
}
],
"refer": {
"sources": [
"https://developer.qweather.com/attribution.html"
],
"license": [
"QWeather Developers License"
]
}
}-
codestring
-
poiobjectPOI list
-
namestringLocation Name
-
idstringLocation ID
-
latstringLatitude
-
lonstringLongitude
-
adm2stringName of the superior administrative division of the location
-
adm1stringThe first-level administrative area of the location
-
countrystringCountry name
-
tzstringTimezone for this location
-
utcOffsetstringThe number of hours offset between local time and UTC time, refer to UTC Offset
-
isDststring
-
typestringLocation type
-
rankstring
-
fxLinkuriResponsive web page of this location, easy to embed in your website or APP
-
-
referobjectData sources and licensing information
-
sourcesarrayData source and other statements, may be null
-
licensearrayData license, may be null
-