|
|
|
@ -311,7 +311,7 @@ class LocationInstance {
|
|
|
|
|
Future<Address?>? getAddress(double lat, double lang) async { |
|
|
|
|
var result = await ApiService(Dio()).geocodeRegeo("$lat", "$lang"); |
|
|
|
|
print("address_result: $result"); |
|
|
|
|
if (result["status"] == 1 && |
|
|
|
|
if (result["status"] == "1" && |
|
|
|
|
result["regeocode"] != null && |
|
|
|
|
result["regeocode"]["addressComponent"] != null) { |
|
|
|
|
Address address = Address.fromJson({ |
|
|
|
|