TIMReverseGeoCodeSearchResult.fromMap constructor
TIMReverseGeoCodeSearchResult.fromMap(
- Map map
map => TIMReverseGeoCodeSearchResult
Implementation
TIMReverseGeoCodeSearchResult.fromMap(Map map)
: assert(
map != null, // ignore: unnecessary_null_comparison
'Construct a TIMReverseGeoCodeSearchResult,The parameter map cannot be null !') {
location =
map['location'] == null ? null : TIMCoordinate.fromMap(map['location']);
address = map['address'];
addressDetail = map['addressDetail'] == null
? null
: TIMAddressComponent.fromMap(map['addressDetail']);
if (map['poiList'] != null) {
List<TIMPoiInfo> tmpPoiList = [];
map['poiList'].forEach((v) {
tmpPoiList.add(TIMPoiInfo.fromMap(v as Map));
});
poiList = tmpPoiList;
}
semanticDescription = map['semanticDescription'];
semanticDescription = map['sematicDescription']; // 百度的SDK拼错了,得适配下
}