Update: 2026-06-24 16:08:47

This commit is contained in:
Hamza-Ayed
2026-06-24 16:08:47 +03:00
parent 4894d566a0
commit 89dca66892
2 changed files with 17 additions and 7 deletions

View File

@@ -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