AMapLocation class
- Implementers
Constructors
- AMapLocation.fromMap(Map map)
Properties
- adCode → String?
-
区域编码
final
- address → String?
-
地址信息
final
- altitude → double?
-
海拔高度(单位:米)
final
- aoiName → String?
-
兴趣面名称
final
- bearing → double?
-
方向角(单位:度) 默认值:0.0
取值范围:【0,360】,其中0度表示正北方向,90度表示正东,180度表示正南,270度表示正西
在android上:
当定位类型不是GPS时,可以通过 AMapLocationOptionForAndroid.sensorEnable 控制是否返回方向角,
当设置为true时会通过手机传感器获取方向角,如果手机没有对应的传感器会返回0.0 注意:
定位类型为GPS时,方向角指的是运动方向
定位类型不是GPS时,方向角指的是手机朝向
final
- city → String?
-
城市名称
final
- cityCode → String?
-
城市编码
final
- country → String?
-
在iOSAMapLocationOptionForIOS.withReGeocode==false以下字段没有数据,需要数据请设置为true
以下数据在iOS属于逆地理信息
国家名称
final
- district → String?
-
区的名称
final
- error → AMapLocationError?
-
ios 连续定位 错误信息 请使用
onLocationFailed
ios 单次定位 android 单次定位和连续定位 错误信息 这里都有final - floor → String?
-
室内定位的楼层信息
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double?
-
高德纬度
final
- longitude → double?
-
高德经度
final
- poiName → String?
-
兴趣点名称
final
- province → String?
-
省的名称
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speed → double?
-
获取当前速度(单位:米/秒)
final
- street → String?
-
街道名称
final
- streetNum → String?
-
门牌号
final
- timestamp → double?
-
定位时间
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toMapForPlatform(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
mapToLocation(
Map map) → AMapLocation