|
|
|
@ -144,7 +144,8 @@ class _AddressMapPage extends State<AddressMapPage> {
|
|
|
|
|
print("keyWord: ${keyWord}"); |
|
|
|
|
var addressPoi = await apiService.searchPoi( |
|
|
|
|
"${latLng.latitude}", "${latLng.longitude}", keyWord, 20, 1); |
|
|
|
|
List<dynamic> poi = addressPoi['pois']; |
|
|
|
|
//如果定位列表无法显示,可以考虑数据是否不在当前字段里面;例:原数据放在['pois']里面,后改成了数据放在['entrances']里面 |
|
|
|
|
List<dynamic> poi = addressPoi['entrances']; |
|
|
|
|
poiList = poi |
|
|
|
|
.map((e) => Address.fromJson({ |
|
|
|
|
"address": e["address"] is List ? "" : e["address"], |
|
|
|
|