Document Maps JavaScript API Reference Manual Search searchCallback

searchCallback

Search result callbackType: function

Parameter: 

status (stringReturn message status can be: 'complete': result is AutocompleteResult; 'error': result is error message; 'no_data': result is 0

result (searchResultReturn detailed information of the result

Attribute

Type

Description

info

string

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

string

Suggested city name

citycode

string

City code

adcode

string

Administrative division code

count

string

Number of suggested results for the city

poiList

object

Return POI list when an event occurs

pageIndex

number

Page number

pageSize

number

Number of results per page

count

number

Total number of query results

pois

Array<POI>

POI list

id

string

POI ID

name

string

Name

type

string

POI Type

location

LngLat

POI Coordinates

address

string

Address

distance

number

Distance from center point, returned only for nearby queries

tel

string

Phone

website

string

Website

pcode

string

POI province code

citycode

string

POI city code

adcode

string

Area code where the POI is located

postcode

string

Postal code

pname

string

Province where the POI is located

cityname

string

City name where the POI is located

adname

string

Administrative division name where the POI is located

email

string

Email

entr_location

LngLat

Entrance longitude and latitude, returned if the POI has entrance and exit information, otherwise returns an empty string

exit_location

LngLat

Exit longitude and latitude, returned if the POI has entrance and exit information, otherwise returns an empty string