@@ -26,9 +26,9 @@ |
||
| 26 | 26 | |
| 27 | 27 | // Add an order to an optimization |
| 28 | 28 | $orderParameters=array( |
| 29 | - "optimization_problem_id" => $optimizationProblemId, |
|
| 30 | - "redirect" => 0, |
|
| 31 | - "device_type" => "web", |
|
| 29 | + "optimization_problem_id" => $optimizationProblemId, |
|
| 30 | + "redirect" => 0, |
|
| 31 | + "device_type" => "web", |
|
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | 34 | $jfile = file_get_contents("add_order_to_optimization_data.json"); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | assert(!is_null($optimizationProblemId), "Can't retrieve a random optimization problem ID"); |
| 26 | 26 | |
| 27 | 27 | // Add an order to an optimization |
| 28 | -$orderParameters=array( |
|
| 28 | +$orderParameters = array( |
|
| 29 | 29 | "optimization_problem_id" => $optimizationProblemId, |
| 30 | 30 | "redirect" => 0, |
| 31 | 31 | "device_type" => "web", |
@@ -37,6 +37,6 @@ discard block |
||
| 37 | 37 | |
| 38 | 38 | $order = new Order(); |
| 39 | 39 | |
| 40 | -$response = $order->addOrder2Optimization($orderParameters,$body); |
|
| 40 | +$response = $order->addOrder2Optimization($orderParameters, $body); |
|
| 41 | 41 | |
| 42 | 42 | Route4Me::simplePrint($response, true); |
@@ -30,10 +30,10 @@ |
||
| 30 | 30 | |
| 31 | 31 | // Remove 2 random orders |
| 32 | 32 | $orderParameters = Order::fromArray(array( |
| 33 | - 'order_ids' => array ( |
|
| 34 | - 0 => $randomOrderID1, |
|
| 35 | - 1 => $randomOrderID2, |
|
| 36 | - ) |
|
| 33 | + 'order_ids' => array ( |
|
| 34 | + 0 => $randomOrderID1, |
|
| 35 | + 1 => $randomOrderID2, |
|
| 36 | + ) |
|
| 37 | 37 | )); |
| 38 | 38 | |
| 39 | 39 | $response = $order->removeOrder($orderParameters); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$vdir=$_SERVER['DOCUMENT_ROOT'].'/route4me/examples/'; |
|
| 4 | +$vdir = $_SERVER['DOCUMENT_ROOT'].'/route4me/examples/'; |
|
| 5 | 5 | |
| 6 | 6 | require $vdir.'/../vendor/autoload.php'; |
| 7 | 7 | |
@@ -30,7 +30,7 @@ discard block |
||
| 30 | 30 | |
| 31 | 31 | // Remove 2 random orders |
| 32 | 32 | $orderParameters = Order::fromArray(array( |
| 33 | - 'order_ids' => array ( |
|
| 33 | + 'order_ids' => array( |
|
| 34 | 34 | 0 => $randomOrderID1, |
| 35 | 35 | 1 => $randomOrderID2, |
| 36 | 36 | ) |
@@ -25,8 +25,8 @@ |
||
| 25 | 25 | |
| 26 | 26 | // Add an order to a route |
| 27 | 27 | $orderParameters=Order::fromArray(array( |
| 28 | - "route_id" => $routeID, |
|
| 29 | - "redirect" => 0, |
|
| 28 | + "route_id" => $routeID, |
|
| 29 | + "redirect" => 0, |
|
| 30 | 30 | )); |
| 31 | 31 | |
| 32 | 32 | $jfile = file_get_contents("add_order_to_route_data.json"); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | // Get random route ID |
| 20 | 20 | $route = new Route(); |
| 21 | 21 | |
| 22 | -$routeID=$route->getRandomRouteId(0, 10); |
|
| 22 | +$routeID = $route->getRandomRouteId(0, 10); |
|
| 23 | 23 | |
| 24 | 24 | assert(!is_null($routeID), "Can't retrieve a random route ID"); |
| 25 | 25 | |
| 26 | 26 | // Add an order to a route |
| 27 | -$orderParameters=Order::fromArray(array( |
|
| 27 | +$orderParameters = Order::fromArray(array( |
|
| 28 | 28 | "route_id" => $routeID, |
| 29 | 29 | "redirect" => 0, |
| 30 | 30 | )); |
@@ -35,6 +35,6 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | $order = new Order(); |
| 37 | 37 | |
| 38 | -$response = $order->addOrder2Route($orderParameters,$body); |
|
| 38 | +$response = $order->addOrder2Route($orderParameters, $body); |
|
| 39 | 39 | |
| 40 | 40 | Route4Me::simplePrint($response, true); |
@@ -17,6 +17,6 @@ |
||
| 17 | 17 | $azones = $avoidancezone->getAvoidanceZones($queryparameters); |
| 18 | 18 | |
| 19 | 19 | foreach ($azones as $azone) { |
| 20 | - Route4Me::simplePrint($azone); |
|
| 21 | - echo "<br>"; |
|
| 20 | + Route4Me::simplePrint($azone); |
|
| 21 | + echo "<br>"; |
|
| 22 | 22 | } |
@@ -1,8 +1,8 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
| 5 | -require $root . '/vendor/autoload.php'; |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | +require $root.'/vendor/autoload.php'; |
|
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
| 8 | 8 | use Route4Me\Enum\TerritoryTypes; |
@@ -12,7 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | $avoidancezone = new AvoidanceZone(); |
| 14 | 14 | |
| 15 | -$queryparameters = array (); |
|
| 15 | +$queryparameters = array(); |
|
| 16 | 16 | |
| 17 | 17 | $azones = $avoidancezone->getAvoidanceZones($queryparameters); |
| 18 | 18 | |
@@ -26,22 +26,22 @@ discard block |
||
| 26 | 26 | |
| 27 | 27 | $addresses = array(); |
| 28 | 28 | foreach($json as $address) { |
| 29 | - $addresses[] = Address::fromArray($address); |
|
| 29 | + $addresses[] = Address::fromArray($address); |
|
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | $parameters = RouteParameters::fromArray(array( |
| 33 | - "algorithm_type" => Algorithmtype::CVRP_TW_SD, |
|
| 34 | - "route_name" => "Multiple Depot, Multiple Driver with 24 Stops, Time Window", |
|
| 35 | - "route_date" => time() + 24*60*60, |
|
| 36 | - "route_time" => 60 * 60 * 7, |
|
| 37 | - "distance_unit" => DistanceUnit::MILES, |
|
| 38 | - "device_type" => DeviceType::WEB, |
|
| 39 | - "optimize" => OptimizationType::DISTANCE, |
|
| 40 | - "metric" => Metric::GEODESIC, |
|
| 41 | - "route_max_duration" => 86400, |
|
| 42 | - "travel_mode" => TravelMode::DRIVING, |
|
| 43 | - "vehicle_capacity" => 1, |
|
| 44 | - "vehicle_max_distance_mi" => 10000 |
|
| 33 | + "algorithm_type" => Algorithmtype::CVRP_TW_SD, |
|
| 34 | + "route_name" => "Multiple Depot, Multiple Driver with 24 Stops, Time Window", |
|
| 35 | + "route_date" => time() + 24*60*60, |
|
| 36 | + "route_time" => 60 * 60 * 7, |
|
| 37 | + "distance_unit" => DistanceUnit::MILES, |
|
| 38 | + "device_type" => DeviceType::WEB, |
|
| 39 | + "optimize" => OptimizationType::DISTANCE, |
|
| 40 | + "metric" => Metric::GEODESIC, |
|
| 41 | + "route_max_duration" => 86400, |
|
| 42 | + "travel_mode" => TravelMode::DRIVING, |
|
| 43 | + "vehicle_capacity" => 1, |
|
| 44 | + "vehicle_max_distance_mi" => 10000 |
|
| 45 | 45 | )); |
| 46 | 46 | |
| 47 | 47 | $optimizationParams = new OptimizationProblemParams; |
@@ -51,16 +51,16 @@ discard block |
||
| 51 | 51 | $problem = OptimizationProblem::optimize($optimizationParams); |
| 52 | 52 | |
| 53 | 53 | foreach ((array)$problem as $key => $value) { |
| 54 | - if (is_string($value)) |
|
| 55 | - { |
|
| 56 | - echo $key." --> ".$value."<br>"; |
|
| 57 | - } |
|
| 58 | - else |
|
| 59 | - { |
|
| 60 | - echo "************ $key ************* <br>"; |
|
| 61 | - Route4Me::simplePrint((array)$value, true); |
|
| 62 | - echo "******************************* <br>"; |
|
| 63 | - } |
|
| 54 | + if (is_string($value)) |
|
| 55 | + { |
|
| 56 | + echo $key." --> ".$value."<br>"; |
|
| 57 | + } |
|
| 58 | + else |
|
| 59 | + { |
|
| 60 | + echo "************ $key ************* <br>"; |
|
| 61 | + Route4Me::simplePrint((array)$value, true); |
|
| 62 | + echo "******************************* <br>"; |
|
| 63 | + } |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -25,14 +25,14 @@ discard block |
||
| 25 | 25 | $json = json_decode(file_get_contents('./addresses.json'), true); |
| 26 | 26 | |
| 27 | 27 | $addresses = array(); |
| 28 | -foreach($json as $address) { |
|
| 28 | +foreach ($json as $address) { |
|
| 29 | 29 | $addresses[] = Address::fromArray($address); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | 32 | $parameters = RouteParameters::fromArray(array( |
| 33 | 33 | "algorithm_type" => Algorithmtype::CVRP_TW_SD, |
| 34 | 34 | "route_name" => "Multiple Depot, Multiple Driver with 24 Stops, Time Window", |
| 35 | - "route_date" => time() + 24*60*60, |
|
| 35 | + "route_date" => time() + 24 * 60 * 60, |
|
| 36 | 36 | "route_time" => 60 * 60 * 7, |
| 37 | 37 | "distance_unit" => DistanceUnit::MILES, |
| 38 | 38 | "device_type" => DeviceType::WEB, |
@@ -54,8 +54,7 @@ |
||
| 54 | 54 | if (is_string($value)) |
| 55 | 55 | { |
| 56 | 56 | echo $key." --> ".$value."<br>"; |
| 57 | - } |
|
| 58 | - else |
|
| 57 | + } else |
|
| 59 | 58 | { |
| 60 | 59 | echo "************ $key ************* <br>"; |
| 61 | 60 | Route4Me::simplePrint((array)$value, true); |
@@ -23,17 +23,17 @@ |
||
| 23 | 23 | |
| 24 | 24 | // Update the vehicle |
| 25 | 25 | $vehicleParameters = Vehicle::fromArray(array ( |
| 26 | - 'vehicle_id' => $randomVehicleID, |
|
| 27 | - 'vehicle_model_year' => 2013, |
|
| 28 | - 'vehicle_year_acquired' => 2016, |
|
| 29 | - 'vehicle_reg_country_id' => '223', |
|
| 30 | - 'vehicle_make' => 'Ford', |
|
| 31 | - 'vehicle_axle_count' => 3, |
|
| 32 | - 'mpg_city' => 11, |
|
| 33 | - 'mpg_highway' => 17, |
|
| 34 | - 'fuel_type' => 'unleaded 93', |
|
| 35 | - 'height_inches' => 74, |
|
| 36 | - 'weight_lb' => 2098 |
|
| 26 | + 'vehicle_id' => $randomVehicleID, |
|
| 27 | + 'vehicle_model_year' => 2013, |
|
| 28 | + 'vehicle_year_acquired' => 2016, |
|
| 29 | + 'vehicle_reg_country_id' => '223', |
|
| 30 | + 'vehicle_make' => 'Ford', |
|
| 31 | + 'vehicle_axle_count' => 3, |
|
| 32 | + 'mpg_city' => 11, |
|
| 33 | + 'mpg_highway' => 17, |
|
| 34 | + 'fuel_type' => 'unleaded 93', |
|
| 35 | + 'height_inches' => 74, |
|
| 36 | + 'weight_lb' => 2098 |
|
| 37 | 37 | )); |
| 38 | 38 | |
| 39 | 39 | $result = $vehicle->updateVehicle($vehicleParameters); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | assert(!is_null($randomVehicleID), "Can't retrieve a random vehilce ID"); |
| 23 | 23 | |
| 24 | 24 | // Update the vehicle |
| 25 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 25 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 26 | 26 | 'vehicle_id' => $randomVehicleID, |
| 27 | 27 | 'vehicle_model_year' => 2013, |
| 28 | 28 | 'vehicle_year_acquired' => 2016, |
@@ -18,38 +18,38 @@ |
||
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
| 21 | - 'vehicle_alias' => 'Peterbilt 579', |
|
| 22 | - 'vehicle_vin' => '1NP5DB9X93N507873', |
|
| 23 | - 'vehicle_license_plate' => 'PPV7516', |
|
| 24 | - 'license_start_date' => '2017-06-05', |
|
| 25 | - 'license_end_date' => '2021-08-14', |
|
| 26 | - 'vehicle_model' => '579', |
|
| 27 | - 'vehicle_model_year' => 2015, |
|
| 28 | - 'vehicle_year_acquired' => 2018, |
|
| 29 | - 'vehicle_reg_country_id' => '223', |
|
| 30 | - 'vehicle_make' => 'Peterbilt', |
|
| 31 | - 'vehicle_type_id' => 'tractor_trailer', |
|
| 32 | - 'has_trailer' => true, |
|
| 33 | - 'vehicle_axle_count' => 5, |
|
| 34 | - 'mpg_city' => 6, |
|
| 35 | - 'mpg_highway' => 12, |
|
| 36 | - 'fuel_type' => 'diesel', |
|
| 37 | - 'height_inches' => 114, |
|
| 38 | - 'height_metric' => 290, |
|
| 39 | - 'weight_lb' => 50350, |
|
| 40 | - 'maxWeightPerAxleGroupInPounds' => 40000, |
|
| 41 | - 'max_weight_per_axle_group_metric' => 18000, |
|
| 42 | - 'widthInInches' => 102, |
|
| 43 | - 'width_metric' => 258, |
|
| 44 | - 'lengthInInches' => 640, |
|
| 45 | - 'length_metric' => 1625, |
|
| 46 | - 'Use53FootTrailerRouting' => 'YES', |
|
| 47 | - 'UseTruckRestrictions' => 'YES', |
|
| 48 | - 'DividedHighwayAvoidPreference' => 'STRONG_AVOID', |
|
| 49 | - 'FreewayAvoidPreference' => 'STRONG_AVOID', |
|
| 50 | - 'truck_config' => '53_SEMI_TRAILER', |
|
| 51 | - 'InternationalBordersOpen' => 'YES', |
|
| 52 | - 'purchased_new' => true |
|
| 21 | + 'vehicle_alias' => 'Peterbilt 579', |
|
| 22 | + 'vehicle_vin' => '1NP5DB9X93N507873', |
|
| 23 | + 'vehicle_license_plate' => 'PPV7516', |
|
| 24 | + 'license_start_date' => '2017-06-05', |
|
| 25 | + 'license_end_date' => '2021-08-14', |
|
| 26 | + 'vehicle_model' => '579', |
|
| 27 | + 'vehicle_model_year' => 2015, |
|
| 28 | + 'vehicle_year_acquired' => 2018, |
|
| 29 | + 'vehicle_reg_country_id' => '223', |
|
| 30 | + 'vehicle_make' => 'Peterbilt', |
|
| 31 | + 'vehicle_type_id' => 'tractor_trailer', |
|
| 32 | + 'has_trailer' => true, |
|
| 33 | + 'vehicle_axle_count' => 5, |
|
| 34 | + 'mpg_city' => 6, |
|
| 35 | + 'mpg_highway' => 12, |
|
| 36 | + 'fuel_type' => 'diesel', |
|
| 37 | + 'height_inches' => 114, |
|
| 38 | + 'height_metric' => 290, |
|
| 39 | + 'weight_lb' => 50350, |
|
| 40 | + 'maxWeightPerAxleGroupInPounds' => 40000, |
|
| 41 | + 'max_weight_per_axle_group_metric' => 18000, |
|
| 42 | + 'widthInInches' => 102, |
|
| 43 | + 'width_metric' => 258, |
|
| 44 | + 'lengthInInches' => 640, |
|
| 45 | + 'length_metric' => 1625, |
|
| 46 | + 'Use53FootTrailerRouting' => 'YES', |
|
| 47 | + 'UseTruckRestrictions' => 'YES', |
|
| 48 | + 'DividedHighwayAvoidPreference' => 'STRONG_AVOID', |
|
| 49 | + 'FreewayAvoidPreference' => 'STRONG_AVOID', |
|
| 50 | + 'truck_config' => '53_SEMI_TRAILER', |
|
| 51 | + 'InternationalBordersOpen' => 'YES', |
|
| 52 | + 'purchased_new' => true |
|
| 53 | 53 | )); |
| 54 | 54 | |
| 55 | 55 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'Peterbilt 579', |
| 22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
| 23 | 23 | 'vehicle_license_plate' => 'PPV7516', |
@@ -18,33 +18,33 @@ |
||
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
| 21 | - 'vehicle_alias' => 'GMC TopKick C5500 Medium', |
|
| 22 | - 'vehicle_vin' => 'SAJXA01A06FN08012', |
|
| 23 | - 'vehicle_license_plate' => 'CVH4561', |
|
| 24 | - 'vehicle_model' => 'TopKick C5500', |
|
| 25 | - 'vehicle_model_year' => 1995, |
|
| 26 | - 'vehicle_year_acquired' => 2008, |
|
| 27 | - 'vehicle_reg_country_id' => '223', |
|
| 28 | - 'vehicle_make' => 'GMC', |
|
| 29 | - 'vehicle_type_id' => 'pickup_truck', |
|
| 30 | - 'vehicle_axle_count' => 2, |
|
| 31 | - 'mpg_city' => 7, |
|
| 32 | - 'mpg_highway' => 14, |
|
| 33 | - 'fuel_type' => 'diesel', |
|
| 34 | - 'height_inches' => 97, |
|
| 35 | - 'height_metric' => 243, |
|
| 36 | - 'weight_lb' => 19000, |
|
| 37 | - 'maxWeightPerAxleGroupInPounds' => 9500, |
|
| 38 | - 'max_weight_per_axle_group_metric' => 4300, |
|
| 39 | - 'widthInInches' => 96, |
|
| 40 | - 'width_metric' => 240, |
|
| 41 | - 'lengthInInches' => 244, |
|
| 42 | - 'length_metric' => 610, |
|
| 43 | - 'Use53FootTrailerRouting' => 'YES', |
|
| 44 | - 'UseTruckRestrictions' => 'YES', |
|
| 45 | - 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
| 46 | - 'FreewayAvoidPreference' => 'NEUTRAL', |
|
| 47 | - 'truck_config' => 'FULLSIZEVAN', |
|
| 21 | + 'vehicle_alias' => 'GMC TopKick C5500 Medium', |
|
| 22 | + 'vehicle_vin' => 'SAJXA01A06FN08012', |
|
| 23 | + 'vehicle_license_plate' => 'CVH4561', |
|
| 24 | + 'vehicle_model' => 'TopKick C5500', |
|
| 25 | + 'vehicle_model_year' => 1995, |
|
| 26 | + 'vehicle_year_acquired' => 2008, |
|
| 27 | + 'vehicle_reg_country_id' => '223', |
|
| 28 | + 'vehicle_make' => 'GMC', |
|
| 29 | + 'vehicle_type_id' => 'pickup_truck', |
|
| 30 | + 'vehicle_axle_count' => 2, |
|
| 31 | + 'mpg_city' => 7, |
|
| 32 | + 'mpg_highway' => 14, |
|
| 33 | + 'fuel_type' => 'diesel', |
|
| 34 | + 'height_inches' => 97, |
|
| 35 | + 'height_metric' => 243, |
|
| 36 | + 'weight_lb' => 19000, |
|
| 37 | + 'maxWeightPerAxleGroupInPounds' => 9500, |
|
| 38 | + 'max_weight_per_axle_group_metric' => 4300, |
|
| 39 | + 'widthInInches' => 96, |
|
| 40 | + 'width_metric' => 240, |
|
| 41 | + 'lengthInInches' => 244, |
|
| 42 | + 'length_metric' => 610, |
|
| 43 | + 'Use53FootTrailerRouting' => 'YES', |
|
| 44 | + 'UseTruckRestrictions' => 'YES', |
|
| 45 | + 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
| 46 | + 'FreewayAvoidPreference' => 'NEUTRAL', |
|
| 47 | + 'truck_config' => 'FULLSIZEVAN', |
|
| 48 | 48 | )); |
| 49 | 49 | |
| 50 | 50 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'GMC TopKick C5500 Medium', |
| 22 | 22 | 'vehicle_vin' => 'SAJXA01A06FN08012', |
| 23 | 23 | 'vehicle_license_plate' => 'CVH4561', |
@@ -18,17 +18,17 @@ |
||
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
| 21 | - 'vehicle_alias' => 'Ford Transit Test 4', |
|
| 22 | - 'vehicle_vin' => 'JS3TD62V1Y4107898', |
|
| 23 | - 'vehicle_reg_country_id' => '223', |
|
| 24 | - 'vehicle_make' => 'Ford', |
|
| 25 | - 'vehicle_model_year' => 2013, |
|
| 26 | - 'vehicle_axle_count' => 3, |
|
| 27 | - 'mpg_city' => 8, |
|
| 28 | - 'mpg_highway' => 14, |
|
| 29 | - 'fuel_type' => 'unleaded 93', |
|
| 30 | - 'height_inches' => 72, |
|
| 31 | - 'weight_lb' => 2000 |
|
| 21 | + 'vehicle_alias' => 'Ford Transit Test 4', |
|
| 22 | + 'vehicle_vin' => 'JS3TD62V1Y4107898', |
|
| 23 | + 'vehicle_reg_country_id' => '223', |
|
| 24 | + 'vehicle_make' => 'Ford', |
|
| 25 | + 'vehicle_model_year' => 2013, |
|
| 26 | + 'vehicle_axle_count' => 3, |
|
| 27 | + 'mpg_city' => 8, |
|
| 28 | + 'mpg_highway' => 14, |
|
| 29 | + 'fuel_type' => 'unleaded 93', |
|
| 30 | + 'height_inches' => 72, |
|
| 31 | + 'weight_lb' => 2000 |
|
| 32 | 32 | )); |
| 33 | 33 | |
| 34 | 34 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -1,7 +1,7 @@ discard block |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace Route4Me; |
| 3 | 3 | |
| 4 | -$root=realpath(dirname(__FILE__).'/../../'); |
|
| 4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
| 5 | 5 | require $root.'/vendor/autoload.php'; |
| 6 | 6 | |
| 7 | 7 | use Route4Me\Route4Me; |
@@ -17,7 +17,7 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | $vehicle = new Vehicle(); |
| 19 | 19 | |
| 20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
| 20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
| 21 | 21 | 'vehicle_alias' => 'Ford Transit Test 4', |
| 22 | 22 | 'vehicle_vin' => 'JS3TD62V1Y4107898', |
| 23 | 23 | 'vehicle_reg_country_id' => '223', |