إضافة الهوية الجديدة Tripz
This commit is contained in:
@@ -70,7 +70,7 @@ class RideLifecycleController extends GetxController {
|
||||
bool isWhatsAppOrder = false;
|
||||
LatLng startLocation = const LatLng(32, 35);
|
||||
LatLng endLocation = const LatLng(32, 35);
|
||||
String dynamicApiUrl = 'https://routec.intaleq.xyz/route';
|
||||
String dynamicApiUrl = 'https://routec.tripz.xyz/route';
|
||||
String? cardNumber;
|
||||
bool isBeginRideFromDriverRunning = false;
|
||||
bool isDriversTokensSend = false;
|
||||
@@ -1665,7 +1665,7 @@ class RideLifecycleController extends GetxController {
|
||||
|
||||
Future<void> getInitialDriverDistanceAndDuration(
|
||||
LatLng driverPos, LatLng passengerPos) async {
|
||||
final String apiUrl = 'https://routec.intaleq.xyz/route';
|
||||
final String apiUrl = 'https://routec.tripz.xyz/route';
|
||||
final String apiKey = Env.mapKeyOsm;
|
||||
final String origin = '${driverPos.latitude},${driverPos.longitude}';
|
||||
final String dest = '${passengerPos.latitude},${passengerPos.longitude}';
|
||||
@@ -1700,7 +1700,7 @@ class RideLifecycleController extends GetxController {
|
||||
String distanceByPassenger = '';
|
||||
|
||||
Future<void> drawDriverPathOnly(LatLng driverPos, LatLng passengerPos) async {
|
||||
final String apiUrl = 'https://routec.intaleq.xyz/route';
|
||||
final String apiUrl = 'https://routec.tripz.xyz/route';
|
||||
final String apiKey = Env.mapKeyOsm;
|
||||
final String origin = '${driverPos.latitude},${driverPos.longitude}';
|
||||
final String dest = '${passengerPos.latitude},${passengerPos.longitude}';
|
||||
@@ -1888,14 +1888,14 @@ class RideLifecycleController extends GetxController {
|
||||
String generateTrackingLink(String rideId, String driverId) {
|
||||
String cleanRideId = rideId.toString().trim();
|
||||
String cleanDriverId = driverId.toString().trim();
|
||||
const String secretSalt = "Siro_Secure_Track_2025";
|
||||
const String secretSalt = "Tripz_Secure_Track_2025";
|
||||
|
||||
String rawString = "$cleanRideId$cleanDriverId$secretSalt";
|
||||
var bytes = utf8.encode(rawString);
|
||||
var digest = md5.convert(bytes);
|
||||
String token = digest.toString();
|
||||
|
||||
return "https://siromove.com/track/index.php?id=$cleanRideId&token=$token";
|
||||
return "https://tripzmove.com/track/index.php?id=$cleanRideId&token=$token";
|
||||
}
|
||||
|
||||
calcualateDistsanceInMetet(LatLng prev, current) async {
|
||||
@@ -2165,7 +2165,7 @@ class RideLifecycleController extends GetxController {
|
||||
fetchCompetitorContext();
|
||||
}
|
||||
|
||||
/// يجلب مقارنة سعر سيرو مع المنافسين ويحدّث الواجهة بشكل غير مُوقِف
|
||||
/// يجلب مقارنة سعر تريبز مع المنافسين ويحدّث الواجهة بشكل غير مُوقِف
|
||||
Future<void> fetchCompetitorContext() async {
|
||||
try {
|
||||
final String passengerLat = mapEngine.polylineCoordinates.isNotEmpty
|
||||
@@ -2182,7 +2182,7 @@ class RideLifecycleController extends GetxController {
|
||||
'passenger_lng': passengerLng,
|
||||
'distance': distance.toString(),
|
||||
'country': box.read(BoxName.countryCode) ?? '',
|
||||
'siro_price': totalPassengerSpeed,
|
||||
'tripz_price': totalPassengerSpeed,
|
||||
'car_type': 'Speed',
|
||||
},
|
||||
);
|
||||
@@ -2213,11 +2213,11 @@ class RideLifecycleController extends GetxController {
|
||||
{bool isBeginPhase = false}) async {
|
||||
if (mapController == null) {
|
||||
Log.print(
|
||||
'⚠️ mapController is null, cannot calculate route via intaleq_maps');
|
||||
'⚠️ mapController is null, cannot calculate route via tripz_maps');
|
||||
return;
|
||||
}
|
||||
|
||||
Log.print('📍 Calculating Driver Route via IntaleqMapController...');
|
||||
Log.print('📍 Calculating Driver Route via TripzMapController...');
|
||||
|
||||
try {
|
||||
final responseData =
|
||||
@@ -3754,9 +3754,8 @@ class RideLifecycleController extends GetxController {
|
||||
newMarkers.add(Marker(
|
||||
markerId: MarkerId('waypoint_$i'),
|
||||
position: wp,
|
||||
icon: InlqBitmap.fromStyleImage(isFirstWaypoint
|
||||
? 'start_icon'
|
||||
: 'end_icon'),
|
||||
icon: InlqBitmap.fromStyleImage(
|
||||
isFirstWaypoint ? 'start_icon' : 'end_icon'),
|
||||
infoWindow: InfoWindow(
|
||||
title: 'توقف ${i + 1}',
|
||||
snippet: 'stop_$i',
|
||||
@@ -4489,7 +4488,7 @@ class RideLifecycleController extends GetxController {
|
||||
}
|
||||
|
||||
/// Builds a Set of short [Polyline] segments that simulate a dashed line.
|
||||
/// intaleq_maps (MapLibre) doesn't support `patterns`, so we manually
|
||||
/// tripz_maps (MapLibre) doesn't support `patterns`, so we manually
|
||||
/// split the route into dash/gap alternating segments.
|
||||
Set<Polyline> _buildDashedPolylines({
|
||||
required List<LatLng> points,
|
||||
|
||||
Reference in New Issue
Block a user