GeocodeService extension
Methods
-
geocode(
String address, {String? city, String? output}) → Future< GeocodeResponse> -
Available on AMapWebService, provided by the GeocodeService extension
地理编码 address: 结构化地址信息 city: 指定查询的城市,默认全国范围 output: 返回数据格式类型,默认为JSON -
reGeocode(
LatLng location, {int? radius, String? output, String? extensions, String? poiType, String? roadLevel, String? homeOrCorp}) → Future< ReGeocodeResponse> -
Available on AMapWebService, provided by the GeocodeService extension
逆地理编码 location: 必填,经纬度坐标 radius: 搜索半径,取值范围在0~3000,默认是1000,单位:米 output: 返回数据格式类型,默认为JSON extensions:返回结果控制,取值为base只返回基本地址信息,取值为all时会返回基本地址信息、附近POI内容、道路信息以及道路交叉口信息 poiType: 返回附近POI类型,extensions参数为all时生效 roadLevel: 道路等级,extensions参数为all时生效 homeOrCorp: 是否优化POI返回顺序,extensions参数为all时生效