AMapLocationForAndroid class
- Inheritance
-
- Object
- AMapLocation
- AMapLocationForAndroid
Constructors
Properties
- accuracy → double?
-
定位精度 单位:米
final
- adCode → String?
-
区域编码
finalinherited
- address → String?
-
地址信息
finalinherited
- altitude → double?
-
海拔高度(单位:米)
finalinherited
- aoiName → String?
-
兴趣面名称
finalinherited
- bearing → double?
-
方向角(单位:度) 默认值:0.0
取值范围:【0,360】,其中0度表示正北方向,90度表示正东,180度表示正南,270度表示正西
在android上:
当定位类型不是GPS时,可以通过 AMapLocationOptionForAndroid.sensorEnable 控制是否返回方向角,
当设置为true时会通过手机传感器获取方向角,如果手机没有对应的传感器会返回0.0 注意:
定位类型为GPS时,方向角指的是运动方向
定位类型不是GPS时,方向角指的是手机朝向
finalinherited
- buildingId → String?
-
室内定位的建筑物ID信息
final
- city → String?
-
城市名称
finalinherited
- cityCode → String?
-
城市编码
finalinherited
- conScenario → int?
-
室内外置信度 室内:且置信度取值在
1 ~ 100
,值越大在室内的可能性越大 室外:且置信度取值在-100 ~ -1
,值越小在室外的可能性越大 无法识别室内外:置信度返回值为 0final - coordType → String?
-
坐标系类型 高德定位sdk会返回两种坐标系 AMapLocationForAndroid.coordinateTypeGCJ02、AMapLocationForAndroid.coordinateTypeWGS84
final
- country → String?
-
在iOSAMapLocationOptionForIOS.withReGeocode==false以下字段没有数据,需要数据请设置为true
以下数据在iOS属于逆地理信息
国家名称
finalinherited
- description → String?
-
位置语义信息
final
- district → String?
-
区的名称
finalinherited
- error → AMapLocationError?
-
ios 连续定位 错误信息 请使用
onLocationFailed
ios 单次定位 android 单次定位和连续定位 错误信息 这里都有finalinherited - floor → String?
-
室内定位的楼层信息
finalinherited
- gpsAccuracyStatus → GPSAccuracyStatus?
-
获取卫星信号强度,仅在卫星定位时有效,
gpsAccuracyGood、gpsAccuracyBad、gpsAccuracyUnknown
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- latitude → double?
-
高德纬度
finalinherited
- locationDetail → String?
-
定位信息描述
final
- locationQualityReport → AMapLocationQualityReport?
-
定位质量
final
- locationType → int?
-
定位结果类型
locationTypeGPS、 locationTypeSameReq、 locationTypeFixCache、 locationTypeWIFI、locationTypeCell、
locationTypeAMAP、locationTypeOffLine、 locationTypeLastLocationCache、 locationCompensation、
locationTypeCoarseLocation、
final
- longitude → double?
-
高德经度
finalinherited
- poiName → String?
-
兴趣点名称
finalinherited
- provider → String?
-
定位提供者
final
- province → String?
-
省的名称
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- satellites → int?
-
当前可用卫星数量, 仅在卫星定位时有效,
final
- speed → double?
-
获取当前速度(单位:米/秒)
finalinherited
- street → String?
-
街道名称
finalinherited
- streetNum → String?
-
门牌号
finalinherited
- timestamp → double?
-
定位时间
finalinherited
- trustedLevel → int?
-
获取定位结果的可信度 只有在定位成功时才有意义
trustedLevelHigh、trustedLevelNormal、trustedLevelLow、trustedLevelBad
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
override
-
toMapForPlatform(
) → Map< String, dynamic> -
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- coordinateTypeGCJ02 → const String
- AMapLocation.COORD_TYPE_GCJ02 -- GCJ02坐标系
- coordinateTypeWGS84 → const String
- AMapLocation.COORD_TYPE_WGS84 -- WGS84坐标系,国外定位时返回的是WGS84坐标系
- gpsAccuracyBad → const int
- 卫星信号强
- gpsAccuracyGood → const int
- 卫星信号弱
- gpsAccuracyUnknown → const int
- 卫星状态未知
- locationCompensation → const int
- locationTypeAMAP → const int
- locationTypeCell → const int
- 基站定位结果 属于网络定位
- locationTypeCoarseLocation → const int
- 模糊定位类型
- locationTypeFast → const int
- 已过时。已合并到AMapLocation.LOCATION_TYPE_SAME_REQ
- locationTypeFixCache → const int
- 缓存定位结果 返回一段时间前设备在相同的环境中缓存下来的网络定位结果,节省无必要的设备定位消耗
- locationTypeGPS → const int
- 卫星定位结果 通过设备卫星定位模块返回的定位结果
- locationTypeLastLocationCache → const int
- 最后位置缓存
- locationTypeOffLine → const int
- 离线定位结果
- locationTypeSameReq → const int
- 前次定位结果 网络定位请求低于1秒、或两次定位之间设备位置变化非常小时返回,设备位移通过传感器感知
- locationTypeWIFI → const int
- Wifi定位结果 属于网络定位,定位精度相对基站定位会更好
- trustedLevelBad → const int
- 定位结果的可信度-非常不可信 周边信息的新鲜度超过10分钟 模拟定位结果
- trustedLevelHigh → const int
- 定位结果的可信度-非常可信 周边信息的新鲜度在15s之内 实时GPS定位结果
- trustedLevelLow → const int
- 定位结果的可信度-可信度较低 周边信息的新鲜度在2-10分钟之间
- trustedLevelNormal → const int
- 定位结果的可信度-可信度一般 周边信息的新鲜度在15秒-2分钟之间 缓存、离线定位、最后位置