@@ -21,7 +21,7 @@ |
||
21 | 21 | |
22 | 22 | // Reoptimize an optimization |
23 | 23 | $problemParams = array( |
24 | - 'optimization_problem_id' => $optimizationProblemId |
|
24 | + 'optimization_problem_id' => $optimizationProblemId |
|
25 | 25 | ); |
26 | 26 | |
27 | 27 | $problem = OptimizationProblem::reoptimize($problemParams); |
@@ -22,11 +22,11 @@ |
||
22 | 22 | |
23 | 23 | // Get an optimization problem |
24 | 24 | $optimizationProblemParams = array( |
25 | - "optimization_problem_id" => $optimizationProblemId |
|
25 | + "optimization_problem_id" => $optimizationProblemId |
|
26 | 26 | ); |
27 | 27 | |
28 | 28 | $optimizationProblem = $optimization->get($optimizationProblemParams); |
29 | 29 | |
30 | 30 | foreach ((array)$optimizationProblem as $probParts) { |
31 | - Route4Me::simplePrint((array)$probParts); |
|
31 | + Route4Me::simplePrint((array)$probParts); |
|
32 | 32 | } |
@@ -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 | } |
@@ -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); |
@@ -17,7 +17,7 @@ |
||
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); |
@@ -17,7 +17,7 @@ |
||
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', |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | // Remove the vehicle |
25 | 25 | $vehicleParameters = Vehicle::fromArray(array ( |
26 | - 'vehicle_id' => $randomVehicleID |
|
26 | + 'vehicle_id' => $randomVehicleID |
|
27 | 27 | )); |
28 | 28 | |
29 | 29 | $result = $vehicle->removeVehicle($vehicleParameters); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | assert(!is_null($randomVehicleID), "Can't retrieve a random vehilce ID"); |
23 | 23 | |
24 | 24 | // Remove the vehicle |
25 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
25 | +$vehicleParameters = Vehicle::fromArray(array( |
|
26 | 26 | 'vehicle_id' => $randomVehicleID |
27 | 27 | )); |
28 | 28 |
@@ -18,39 +18,39 @@ |
||
18 | 18 | $vehicle = new Vehicle(); |
19 | 19 | |
20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
21 | - 'vehicle_alias' => 'ISUZU FTR', |
|
22 | - 'vehicle_vin' => '1NP5DB9X93N507873', |
|
23 | - 'vehicle_license_plate' => 'IFT6253', |
|
24 | - 'license_start_date' => '2008-05-14', |
|
25 | - 'license_end_date' => '2020-09-24', |
|
26 | - 'vehicle_model' => 'FTR', |
|
27 | - 'vehicle_model_year' => 2008, |
|
28 | - 'vehicle_year_acquired' => 2008, |
|
29 | - 'vehicle_reg_country_id' => '223', |
|
30 | - 'vehicle_type_id' => 'bigrig', |
|
31 | - 'has_trailer' => false, |
|
32 | - 'vehicle_axle_count' => 2, |
|
33 | - 'mpg_city' => 5, |
|
34 | - 'mpg_highway' => 15, |
|
35 | - 'fuel_type' => 'diesel', |
|
36 | - 'height_inches' => 112, |
|
37 | - 'height_metric' => 280, |
|
38 | - 'weight_lb' => 25950, |
|
39 | - 'maxWeightPerAxleGroupInPounds' => 19000, |
|
40 | - 'max_weight_per_axle_group_metric' => 8620, |
|
41 | - 'widthInInches' => 94, |
|
42 | - 'width_metric' => 235, |
|
43 | - 'lengthInInches' => 384, |
|
44 | - 'length_metric' => 960, |
|
45 | - 'Use53FootTrailerRouting' => 'NO', |
|
46 | - 'UseTruckRestrictions' => 'YES', |
|
47 | - 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
48 | - 'FreewayAvoidPreference' => 'NEUTRAL', |
|
49 | - 'TollRoadUsage' => 'ALWAYS_AVOID', |
|
50 | - 'truck_config' => '26_STRAIGHT_TRUCK', |
|
51 | - 'InternationalBordersOpen' => 'YES', |
|
52 | - 'purchased_new' => true, |
|
53 | - 'HazmatType' => 'FLAMMABLE' |
|
21 | + 'vehicle_alias' => 'ISUZU FTR', |
|
22 | + 'vehicle_vin' => '1NP5DB9X93N507873', |
|
23 | + 'vehicle_license_plate' => 'IFT6253', |
|
24 | + 'license_start_date' => '2008-05-14', |
|
25 | + 'license_end_date' => '2020-09-24', |
|
26 | + 'vehicle_model' => 'FTR', |
|
27 | + 'vehicle_model_year' => 2008, |
|
28 | + 'vehicle_year_acquired' => 2008, |
|
29 | + 'vehicle_reg_country_id' => '223', |
|
30 | + 'vehicle_type_id' => 'bigrig', |
|
31 | + 'has_trailer' => false, |
|
32 | + 'vehicle_axle_count' => 2, |
|
33 | + 'mpg_city' => 5, |
|
34 | + 'mpg_highway' => 15, |
|
35 | + 'fuel_type' => 'diesel', |
|
36 | + 'height_inches' => 112, |
|
37 | + 'height_metric' => 280, |
|
38 | + 'weight_lb' => 25950, |
|
39 | + 'maxWeightPerAxleGroupInPounds' => 19000, |
|
40 | + 'max_weight_per_axle_group_metric' => 8620, |
|
41 | + 'widthInInches' => 94, |
|
42 | + 'width_metric' => 235, |
|
43 | + 'lengthInInches' => 384, |
|
44 | + 'length_metric' => 960, |
|
45 | + 'Use53FootTrailerRouting' => 'NO', |
|
46 | + 'UseTruckRestrictions' => 'YES', |
|
47 | + 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
48 | + 'FreewayAvoidPreference' => 'NEUTRAL', |
|
49 | + 'TollRoadUsage' => 'ALWAYS_AVOID', |
|
50 | + 'truck_config' => '26_STRAIGHT_TRUCK', |
|
51 | + 'InternationalBordersOpen' => 'YES', |
|
52 | + 'purchased_new' => true, |
|
53 | + 'HazmatType' => 'FLAMMABLE' |
|
54 | 54 | )); |
55 | 55 | |
56 | 56 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $vehicle = new Vehicle(); |
19 | 19 | |
20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
21 | 21 | 'vehicle_alias' => 'ISUZU FTR', |
22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
23 | 23 | 'vehicle_license_plate' => 'IFT6253', |
@@ -18,37 +18,37 @@ |
||
18 | 18 | $vehicle = new Vehicle(); |
19 | 19 | |
20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
21 | - 'vehicle_alias' => 'Liebherr T 282B mining truck', |
|
22 | - 'vehicle_vin' => '1NP5DB9X93N507873', |
|
23 | - 'vehicle_license_plate' => 'LMT8765', |
|
24 | - 'license_start_date' => '2008-04-12', |
|
25 | - 'license_end_date' => '2020-08-16', |
|
26 | - 'vehicle_model' => 'Liebherr T 282B', |
|
27 | - 'vehicle_model_year' => 2004, |
|
28 | - 'vehicle_year_acquired' => 2008, |
|
29 | - 'vehicle_reg_country_id' => '223', |
|
30 | - 'vehicle_type_id' => 'bigrig', |
|
31 | - 'has_trailer' => false, |
|
32 | - 'vehicle_axle_count' => 2, |
|
33 | - 'mpg_city' => 2, |
|
34 | - 'mpg_highway' => 4, |
|
35 | - 'fuel_type' => 'diesel', |
|
36 | - 'height_inches' => 596, |
|
37 | - 'height_metric' => 1490, |
|
38 | - 'weight_lb' => 1316000, |
|
39 | - 'maxWeightPerAxleGroupInPounds' => 658000, |
|
40 | - 'max_weight_per_axle_group_metric' => 298450, |
|
41 | - 'widthInInches' => 381, |
|
42 | - 'width_metric' => 952, |
|
43 | - 'lengthInInches' => 613, |
|
44 | - 'length_metric' => 1532, |
|
45 | - 'Use53FootTrailerRouting' => 'YES', |
|
46 | - 'UseTruckRestrictions' => 'YES', |
|
47 | - 'DividedHighwayAvoidPreference' => 'STRONG_AVOID', |
|
48 | - 'FreewayAvoidPreference' => 'STRONG_AVOID', |
|
49 | - 'truck_config' => '53_SEMI_TRAILER', |
|
50 | - 'InternationalBordersOpen' => 'YES', |
|
51 | - 'purchased_new' => true |
|
21 | + 'vehicle_alias' => 'Liebherr T 282B mining truck', |
|
22 | + 'vehicle_vin' => '1NP5DB9X93N507873', |
|
23 | + 'vehicle_license_plate' => 'LMT8765', |
|
24 | + 'license_start_date' => '2008-04-12', |
|
25 | + 'license_end_date' => '2020-08-16', |
|
26 | + 'vehicle_model' => 'Liebherr T 282B', |
|
27 | + 'vehicle_model_year' => 2004, |
|
28 | + 'vehicle_year_acquired' => 2008, |
|
29 | + 'vehicle_reg_country_id' => '223', |
|
30 | + 'vehicle_type_id' => 'bigrig', |
|
31 | + 'has_trailer' => false, |
|
32 | + 'vehicle_axle_count' => 2, |
|
33 | + 'mpg_city' => 2, |
|
34 | + 'mpg_highway' => 4, |
|
35 | + 'fuel_type' => 'diesel', |
|
36 | + 'height_inches' => 596, |
|
37 | + 'height_metric' => 1490, |
|
38 | + 'weight_lb' => 1316000, |
|
39 | + 'maxWeightPerAxleGroupInPounds' => 658000, |
|
40 | + 'max_weight_per_axle_group_metric' => 298450, |
|
41 | + 'widthInInches' => 381, |
|
42 | + 'width_metric' => 952, |
|
43 | + 'lengthInInches' => 613, |
|
44 | + 'length_metric' => 1532, |
|
45 | + 'Use53FootTrailerRouting' => 'YES', |
|
46 | + 'UseTruckRestrictions' => 'YES', |
|
47 | + 'DividedHighwayAvoidPreference' => 'STRONG_AVOID', |
|
48 | + 'FreewayAvoidPreference' => 'STRONG_AVOID', |
|
49 | + 'truck_config' => '53_SEMI_TRAILER', |
|
50 | + 'InternationalBordersOpen' => 'YES', |
|
51 | + 'purchased_new' => true |
|
52 | 52 | )); |
53 | 53 | |
54 | 54 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $vehicle = new Vehicle(); |
19 | 19 | |
20 | -$vehicleParameters = Vehicle::fromArray(array ( |
|
20 | +$vehicleParameters = Vehicle::fromArray(array( |
|
21 | 21 | 'vehicle_alias' => 'Liebherr T 282B mining truck', |
22 | 22 | 'vehicle_vin' => '1NP5DB9X93N507873', |
23 | 23 | 'vehicle_license_plate' => 'LMT8765', |
@@ -18,33 +18,33 @@ |
||
18 | 18 | $vehicle = new Vehicle(); |
19 | 19 | |
20 | 20 | $vehicleParameters = Vehicle::fromArray(array ( |
21 | - 'vehicle_alias' => 'GMC TopKick C5500 Light', |
|
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' => 'NO', |
|
44 | - 'UseTruckRestrictions' => 'NO', |
|
45 | - 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
46 | - 'FreewayAvoidPreference' => 'NEUTRAL', |
|
47 | - 'truck_config' => 'FULLSIZEVAN', |
|
21 | + 'vehicle_alias' => 'GMC TopKick C5500 Light', |
|
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' => 'NO', |
|
44 | + 'UseTruckRestrictions' => 'NO', |
|
45 | + 'DividedHighwayAvoidPreference' => 'NEUTRAL', |
|
46 | + 'FreewayAvoidPreference' => 'NEUTRAL', |
|
47 | + 'truck_config' => 'FULLSIZEVAN', |
|
48 | 48 | )); |
49 | 49 | |
50 | 50 | $result = $vehicle->createVehicle($vehicleParameters); |
@@ -17,7 +17,7 @@ |
||
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 Light', |
22 | 22 | 'vehicle_vin' => 'SAJXA01A06FN08012', |
23 | 23 | 'vehicle_license_plate' => 'CVH4561', |