Interface SuggestionSearchOption

建议查询请求参数接口

interface SuggestionSearchOption {
    city: null | string;
    keyword: string;
    isExtendAdcode?: boolean;
    cityLimit?: boolean;
    location?: LatLng;
    hotWord?: boolean;
}

Properties

city: null | string

请求城市区域字段,必须参数 为null时,全国范围检索

keyword: string

检索关键字 必须参数

isExtendAdcode?: boolean

是否获取行政区域编码

cityLimit?: boolean

设置是否限制城市范围 非必须参数,默认为false 取值为"true"时,仅返回city中指定城市检索结果(注:仅限大陆地区有效)

location?: LatLng

检索坐标参数 非必须参数 会影响关键字不在设置城市范围内时的检索结果

hotWord?: boolean

返回结果类型 true:热词