AMapSearch class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
fetchInputTips(String keyword, {String city = '', LatLng? latLng, bool cityLimit = false})
→ Future<List>
-
输入内容自动提示
-
searchAround(LatLng center, {String keyword = '', String city = '', String types = '', int pageSize = 20, int page = 1, int radius = 1500})
→ Future<List<AMapPoi>>
-
周边搜索poi
-
searchKeyword(String keyword, {String city = '', String types = '', int pageSize = 20, int page = 1, bool cityLimit = false})
→ Future<List<AMapPoi>>
-
关键字搜索poi
-
setApiKey(String androidKey, String iosKey)
→ void
-
设置Android和iOS的apikey,建议在weigdet初始化时设置
apiKey的申请请参考高德开放平台官网
Android端: https://lbs.amap.com/api/android-location-sdk/guide/create-project/get-key
iOS端: https://lbs.amap.com/api/ios-location-sdk/guide/create-project/get-key
androidKey
Android平台的key
iosKey
ios平台的key
-
updatePrivacyAgree(bool hasAgree)
→ Future<void>
-
确保调用SDK任何接口前先调用更新隐私合规updatePrivacyShow、updatePrivacyAgree两个接口并且参数值都为true,若未正确设置有崩溃风险
-
updatePrivacyShow(bool hasContains, bool hasShow)
→ Future<void>
-
确保调用SDK任何接口前先调用更新隐私合规updatePrivacyShow、updatePrivacyAgree两个接口并且参数值都为true,若未正确设置有崩溃风险