distance needs to be multiplied by 2

This commit is contained in:
Luca Haid
2025-04-24 11:09:18 +00:00
parent adabe9a7a2
commit 9079cc500c

View File

@@ -526,7 +526,7 @@ class WarehouseShippingNoteController extends TTCrud {
$url = "https://router.project-osrm.org/route/v1/driving/$fromLon,$fromLat;$toLon,$toLat?overview=false";
$data = json_decode(file_get_contents($url), true);
$distance = $data['routes'][0]['distance'];
return $distance;
return $distance * 2;
}
$fromData = geocode($from);