AmapSearch class

高德地图 搜索组件主类

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited

Static Methods

dispose() → void
释放原生端对应的资源, 除了AMapServices
fetchInputTips(String keyword, { String city: '' }) Future<List<InputTip>>
输入内容自动提示 [...]
init(String iosKey) Future
设置ios端的key, android端需要在manifest里面设置, 无法通过代码设置
searchAround(LatLng center, { String keyword: '', String city: '' }) Future<List<Poi>>
周边搜索poi [...]
searchBusRoute({LatLng from, LatLng to, String city, int mode: 0, int nightflag: 0 }) Future<BusRouteResult>
公交出行路线规划 [...]
searchBusStation({String stationName, String city }) Future<BusStation>
获取公交信息
searchDistrict(String district) Future<District>
获取行政区划数据
searchDriveRoute({LatLng from, LatLng to, List<LatLng> passedByPoints: const [], String avoidRoad: '' }) Future<DriveRouteResult>
驾车出行路线规划 [...]
searchGeocode(String keyword, { String city: '' }) Future<List<Geocode>>
地理编码(地址转坐标) [...]
searchKeyword(String keyword, { String city: '' }) Future<List<Poi>>
关键字搜索poi [...]
searchReGeocode(LatLng latLng, { double radius: 200.0 }) Future<ReGeocode>
逆地理编码(坐标转地址) [...]
searchRideRoute({LatLng from, LatLng to, int mode: 0 }) Future<RideRouteResult>
骑行路径规划
searchWalkRoute({LatLng from, LatLng to, int mode: 0 }) Future<WalkRouteResult>
步行路线规划 [...]
searchWeather(String city, { int mode: 0 }) Future<Weather>
todo 获取天气数据