From 9079cc500c9997be851c3c79a78e573deaa81720 Mon Sep 17 00:00:00 2001 From: Luca Haid Date: Thu, 24 Apr 2025 11:09:18 +0000 Subject: [PATCH] distance needs to be multiplied by 2 --- .../WarehouseShippingNote/WarehouseShippingNoteController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/WarehouseShippingNote/WarehouseShippingNoteController.php b/application/WarehouseShippingNote/WarehouseShippingNoteController.php index 2ad3902d4..aa5d47426 100644 --- a/application/WarehouseShippingNote/WarehouseShippingNoteController.php +++ b/application/WarehouseShippingNote/WarehouseShippingNoteController.php @@ -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);