This commit is contained in:
Hamza-Ayed
2024-06-15 12:47:08 +03:00
parent a13f9254ae
commit 4eb0d46402
59 changed files with 413 additions and 743 deletions

View File

@@ -878,23 +878,9 @@ class MapDriverController extends GetxController {
startNameLocation = Get.arguments['startNameLocation'];
endNameLocation = Get.arguments['endNameLocation'];
// var coords = passengerLocation.toString().split(',');
// var coordDestination = passengerDestination.toString().split(',');
// Parse to double
latlng(passengerLocation, passengerDestination);
// double latPassengerLocation =
// double.parse(passengerLocation.toString().split(',')[0]);
// double lngPassengerLocation =
// double.parse(passengerLocation.toString().split(',')[1]);
// double latPassengerDestination =
// double.parse(passengerDestination.toString().split(',')[0]);
// double lngPassengerDestination =
// double.parse(passengerDestination.toString().split(',')[1]);
// latLngPassengerLocation =
// LatLng(latPassengerLocation, lngPassengerLocation);
// latLngPassengerDestination =
// LatLng(latPassengerDestination, lngPassengerDestination);
String lat = Get.find<LocationController>().myLocation.latitude.toString();
String lng = Get.find<LocationController>().myLocation.longitude.toString();
String origin = '$lat,$lng';