AMapLocation class

定位信息类

可提供内容包括:

provider定位信息提供者,注意,如果是iOS平台只会返回‘iOS’

latLng经纬度信息

accuracy 水平精确度

altitude 海拔

bearing 角度

speed 速度

time 定位时间

Constructors

AMapLocation({String provider = '', required LatLng latLng, double accuracy = 0, double altitude = 0, double bearing = 0, double speed = 0, num time = 0})
const

Properties

accuracy double
水平精确度
final
altitude double
海拔
final
bearing double
角度
final
hashCode int
The hash code for this object.
no setteroverride
latLng LatLng
经纬度
final
provider String
定位提供者
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
speed double
速度
final
time num
定位时间
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → dynamic
Converts this object to something serializable in JSON.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

fromMap(dynamic json) AMapLocation?