AMapLocation.fromMap constructor
AMapLocation.fromMap(
- Map map
Implementation
AMapLocation.fromMap(Map<dynamic, dynamic> map)
: speed = map['speed'] as double?,
altitude = map['altitude'] as double?,
adCode = map['adCode'] as String?,
aoiName = map['aoiName'] as String?,
city = map['city'] as String?,
cityCode = map['cityCode'] as String?,
country = map['country'] as String?,
district = map['district'] as String?,
poiName = map['poiName'] as String?,
province = map['province'] as String?,
street = map['street'] as String?,
address =
map['address'] as String? ?? map['formattedAddress'] as String?,
streetNum = map['streetNum'] as String? ?? map['number'] as String?,
latitude = map['latitude'] as double?,
longitude = map['longitude'] as double?,
floor = map['floor']?.toString(),
bearing = map['bearing'] as double? ?? map['course'] as double?,
timestamp = map['timestamp'] as double?,
error = AMapLocationError.fromMap(map);