distance needs to be multiplied by 2
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user