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);