Update: 2026-06-24 16:08:47
This commit is contained in:
@@ -303,13 +303,20 @@ class LocationSearchController extends GetxController {
|
||||
rideLifecycle.resetNoRideSearch();
|
||||
}
|
||||
|
||||
try {
|
||||
getReverseGeocoding(passengerLocation).then((address) {
|
||||
currentLocationString = address;
|
||||
update();
|
||||
});
|
||||
} catch (e) {
|
||||
Log.print('Error resolving current location: $e');
|
||||
final bool isLoggedIn = box.read(BoxName.isVerified) == '1' &&
|
||||
box.read(BoxName.passengerID) != null;
|
||||
|
||||
if (isLoggedIn) {
|
||||
try {
|
||||
getReverseGeocoding(passengerLocation).then((address) {
|
||||
currentLocationString = address;
|
||||
update();
|
||||
});
|
||||
} catch (e) {
|
||||
Log.print('Error resolving current location: $e');
|
||||
}
|
||||
} else {
|
||||
Log.print('LocationSearchController: Skipping reverse geocoding call, user not logged in.');
|
||||
}
|
||||
|
||||
OfflineMapService.instance
|
||||
|
||||
Reference in New Issue
Block a user