Update: 2026-07-06 01:01:29

This commit is contained in:
Hamza-Ayed
2026-07-06 01:01:30 +03:00
parent d00502769a
commit 1b67c5e8fc
4 changed files with 29 additions and 10 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ if ($method === 'GET') {
require_once __DIR__ . '/../core/osrm_routing.php';
$duration_min = 0;
if ($start_lat != 0 && $end_lat != 0) {
$osrmResult = getOsrmRouteDetails($start_lat, $start_lng, $end_lat, $end_lng);
$osrmResult = getOsrmRouteDetails($start_lat, $start_lng, $end_lat, $end_lng, $country_code);
if ($osrmResult) {
$distance_km = $osrmResult['distance_km']; // Override with accurate OSRM distance
$duration_min = $osrmResult['duration_min'];