SearchPoiService extension

on

Methods

searchAround(LatLng location, {String? keywords, String? types, int? radius, String? sortRule, String? region, bool? cityLimit, String? showFields, int? pageSize, int? pageNum, String? output}) Future<SearchPoiResponse>

Available on AMapWebService, provided by the SearchPoiService extension

周边搜索 location: 必填,中心点坐标 keywords: 地点关键字 types: 指定地点类型 radius: 搜索半径,取值范围:0-50000,大于50000时按默认值,单位:米,默认为5000 sortrule: 排序规则,按距离排序:distance;综合排序:weight,默认为distance region: 搜索区划 city_limit: 指定城市数据召回限制,可选值:true/false,默认为false show_fields: 返回结果控制 page_size: 当前分页展示的数据条数,page_size的取值1-25,默认为10 page_num: 请求第几分页,page_num的取值1-100,默认为1 output: 返回结果格式类型,默认格式为json,目前只支持json格式
textSearch({String? keywords, String? types, String? region, bool? cityLimit, String? showFields, int? pageSize, int? pageNum, String? output}) Future<SearchPoiResponse>

Available on AMapWebService, provided by the SearchPoiService extension

关键字搜索 必填: keyword或者types二选一 keywords: 地点关键字 types: 指定地点类型 region: 搜索区划 city_limit: 指定城市数据召回限制, 默认为false show_fields: 返回结果控制 page_size: 当前分页展示的数据条数,取值为1-25,默认为10 page_num: 请求第几分页,取值为1-100,默认为1 output: 返回结果格式类型,默认格式为json,目前只支持json格式