Search result callback(Type: function)
Parameter:
status (string) Return message status can be: 'complete': result is AutocompleteResult; 'error': result is error message; 'no_data': result is 0
result (searchResult) Return detailed information of the result
Attribute | Type | Description | ||
info | Query status description | |||
keywordList | Array<keyword> | When an event occurs and there is no such keyword, return a suggested keyword list, which can be queried based on the suggested keywords | ||
cityList | Array<cityInfo> | When an event occurs and no keyword is found and the city is '全国', return a list of suggested cities, each containing one or more related POI points information | ||
name | Suggested city name | |||
citycode | City code | |||
adcode | Administrative division code | |||
count | Number of suggested results for the city | |||
poiList | Return POI list when an event occurs | |||
pageIndex | Page number | |||
pageSize | Number of results per page | |||
count | Total number of query results | |||
pois | Array<POI> | POI list | ||
id | POI ID | |||
name | Name | |||
type | POI Type | |||
location | POI Coordinates | |||
address | Address | |||
distance | Distance from center point, returned only for nearby queries | |||
tel | Phone | |||
website | Website | |||
pcode | POI province code | |||
citycode | POI city code | |||
adcode | Area code where the POI is located | |||
postcode | Postal code | |||
pname | Province where the POI is located | |||
cityname | City name where the POI is located | |||
adname | Administrative division name where the POI is located | |||
entr_location | Entrance longitude and latitude, returned if the POI has entrance and exit information, otherwise returns an empty string | |||
exit_location | Exit longitude and latitude, returned if the POI has entrance and exit information, otherwise returns an empty string | |||