@@ -9,66 +9,66 @@ |
||
9 | 9 | */ |
10 | 10 | class RouteAdvancedConstraints extends \Route4Me\Common |
11 | 11 | { |
12 | - /** Maximum cargo volume per route |
|
13 | - * @var double $max_cargo_volume |
|
14 | - */ |
|
15 | - public $max_cargo_volume; |
|
12 | + /** Maximum cargo volume per route |
|
13 | + * @var double $max_cargo_volume |
|
14 | + */ |
|
15 | + public $max_cargo_volume; |
|
16 | 16 | |
17 | - /** Vehicle capacity. |
|
18 | - * <para>How much total cargo can be transported per route (units, e.g. cubic meters)</para> |
|
19 | - * @var integer $max_capacity |
|
20 | - */ |
|
21 | - public $max_capacity; |
|
17 | + /** Vehicle capacity. |
|
18 | + * <para>How much total cargo can be transported per route (units, e.g. cubic meters)</para> |
|
19 | + * @var integer $max_capacity |
|
20 | + */ |
|
21 | + public $max_capacity; |
|
22 | 22 | |
23 | - /** Legacy feature which permits a user to request an example number of optimized routes. |
|
24 | - * @var integer $members_count |
|
25 | - */ |
|
26 | - public $members_count; |
|
23 | + /** Legacy feature which permits a user to request an example number of optimized routes. |
|
24 | + * @var integer $members_count |
|
25 | + */ |
|
26 | + public $members_count; |
|
27 | 27 | |
28 | - /** An array of the available time windows (e.g. [ [25200, 75000 ] ) |
|
29 | - * @var Array $available_time_windows |
|
30 | - */ |
|
31 | - public $available_time_windows; |
|
28 | + /** An array of the available time windows (e.g. [ [25200, 75000 ] ) |
|
29 | + * @var Array $available_time_windows |
|
30 | + */ |
|
31 | + public $available_time_windows; |
|
32 | 32 | |
33 | - /** The driver tags specified in a team member's custom data. |
|
34 | - * (e.g. "driver skills": |
|
35 | - * ["Class A CDL", "Class B CDL", "Forklift", "Skid Steer Loader", "Independent Contractor"] |
|
36 | - * @var string[] $tags |
|
37 | - */ |
|
38 | - public $tags; |
|
33 | + /** The driver tags specified in a team member's custom data. |
|
34 | + * (e.g. "driver skills": |
|
35 | + * ["Class A CDL", "Class B CDL", "Forklift", "Skid Steer Loader", "Independent Contractor"] |
|
36 | + * @var string[] $tags |
|
37 | + */ |
|
38 | + public $tags; |
|
39 | 39 | |
40 | - /** An array of the skilled driver IDs. |
|
41 | - * @var integer[] $route4me_members_id |
|
42 | - */ |
|
43 | - public $route4me_members_id; |
|
40 | + /** An array of the skilled driver IDs. |
|
41 | + * @var integer[] $route4me_members_id |
|
42 | + */ |
|
43 | + public $route4me_members_id; |
|
44 | 44 | |
45 | - /** |
|
46 | - * An array containing Address objects. |
|
47 | - * @var Address |
|
48 | - */ |
|
49 | - public $depot_address; |
|
45 | + /** |
|
46 | + * An array containing Address objects. |
|
47 | + * @var Address |
|
48 | + */ |
|
49 | + public $depot_address; |
|
50 | 50 | |
51 | - /** |
|
52 | - * An array of locations. |
|
53 | - * @var object[] |
|
54 | - */ |
|
55 | - public $location_sequence_pattern; |
|
51 | + /** |
|
52 | + * An array of locations. |
|
53 | + * @var object[] |
|
54 | + */ |
|
55 | + public $location_sequence_pattern; |
|
56 | 56 | |
57 | - /** |
|
58 | - * Group. |
|
59 | - * @var string |
|
60 | - */ |
|
61 | - public $group; |
|
57 | + /** |
|
58 | + * Group. |
|
59 | + * @var string |
|
60 | + */ |
|
61 | + public $group; |
|
62 | 62 | |
63 | - public static function fromArray(array $params) |
|
64 | - { |
|
65 | - $routeParams = new self(); |
|
66 | - foreach ($params as $key => $value) { |
|
67 | - if (property_exists($routeParams, $key)) { |
|
68 | - $routeParams->{$key} = $value; |
|
69 | - } |
|
70 | - } |
|
63 | + public static function fromArray(array $params) |
|
64 | + { |
|
65 | + $routeParams = new self(); |
|
66 | + foreach ($params as $key => $value) { |
|
67 | + if (property_exists($routeParams, $key)) { |
|
68 | + $routeParams->{$key} = $value; |
|
69 | + } |
|
70 | + } |
|
71 | 71 | |
72 | - return $routeParams; |
|
73 | - } |
|
72 | + return $routeParams; |
|
73 | + } |
|
74 | 74 | } |
75 | 75 | \ No newline at end of file |
@@ -7,101 +7,101 @@ |
||
7 | 7 | |
8 | 8 | class RouteParameters extends Common |
9 | 9 | { |
10 | - public $is_upload; |
|
11 | - public $rt; |
|
12 | - public $route_name; |
|
13 | - public $route_date; |
|
14 | - public $shared_publicly; |
|
15 | - public $disable_optimization; |
|
16 | - public $optimize; |
|
17 | - public $lock_last; |
|
18 | - public $vehicle_capacity; |
|
19 | - public $vehicle_max_cargo_weight; |
|
20 | - public $vehicle_max_cargo_volume; |
|
21 | - public $vehicle_max_distance_mi; |
|
22 | - public $subtour_max_revenue; |
|
23 | - public $distance_unit; |
|
24 | - public $travel_mode; |
|
25 | - public $avoid; |
|
26 | - public $avoidance_zones = []; |
|
27 | - public $vehicle_id; |
|
28 | - public $driver_id; |
|
29 | - public $dev_lat; |
|
30 | - public $dev_lng; |
|
31 | - public $route_max_duration; |
|
32 | - public $route_email; |
|
33 | - public $store_route; |
|
34 | - public $metric; |
|
35 | - public $algorithm_type; |
|
36 | - public $member_id; |
|
37 | - public $ip; |
|
38 | - public $dm; |
|
39 | - public $dirm; |
|
40 | - public $parts; |
|
41 | - public $parts_min; |
|
42 | - public $device_id; |
|
43 | - public $device_type; |
|
44 | - public $first_drive_then_wait_between_stops; |
|
45 | - public $has_trailer; |
|
46 | - public $trailer_weight_t; |
|
47 | - public $limited_weight_t; |
|
48 | - public $weight_per_axle_t; |
|
49 | - public $truck_height; |
|
50 | - public $truck_width; |
|
51 | - public $truck_length; |
|
52 | - public $truck_hazardous_goods; |
|
53 | - public $truck_axles; |
|
54 | - public $truck_toll_road_usage; |
|
55 | - public $truck_avoid_ferries; |
|
56 | - public $truck_hwy_only; |
|
57 | - public $truck_lcv; |
|
58 | - public $truck_borders; |
|
59 | - public $truck_side_street_adherence; |
|
60 | - public $truck_config; |
|
61 | - public $truck_dim_unit; |
|
62 | - public $truck_type; |
|
63 | - public $truck_weight; |
|
64 | - public $optimization_quality; |
|
65 | - public $override_addresses = []; |
|
66 | - public $max_tour_size; |
|
67 | - public $min_tour_size; |
|
68 | - public $uturn; |
|
69 | - public $leftturn; |
|
70 | - public $rightturn; |
|
71 | - public $route_time_multiplier; |
|
72 | - public $route_service_time_multiplier; |
|
73 | - public $optimization_engine; |
|
74 | - public $is_dynamic_start_time; |
|
75 | - public $bundling; |
|
10 | + public $is_upload; |
|
11 | + public $rt; |
|
12 | + public $route_name; |
|
13 | + public $route_date; |
|
14 | + public $shared_publicly; |
|
15 | + public $disable_optimization; |
|
16 | + public $optimize; |
|
17 | + public $lock_last; |
|
18 | + public $vehicle_capacity; |
|
19 | + public $vehicle_max_cargo_weight; |
|
20 | + public $vehicle_max_cargo_volume; |
|
21 | + public $vehicle_max_distance_mi; |
|
22 | + public $subtour_max_revenue; |
|
23 | + public $distance_unit; |
|
24 | + public $travel_mode; |
|
25 | + public $avoid; |
|
26 | + public $avoidance_zones = []; |
|
27 | + public $vehicle_id; |
|
28 | + public $driver_id; |
|
29 | + public $dev_lat; |
|
30 | + public $dev_lng; |
|
31 | + public $route_max_duration; |
|
32 | + public $route_email; |
|
33 | + public $store_route; |
|
34 | + public $metric; |
|
35 | + public $algorithm_type; |
|
36 | + public $member_id; |
|
37 | + public $ip; |
|
38 | + public $dm; |
|
39 | + public $dirm; |
|
40 | + public $parts; |
|
41 | + public $parts_min; |
|
42 | + public $device_id; |
|
43 | + public $device_type; |
|
44 | + public $first_drive_then_wait_between_stops; |
|
45 | + public $has_trailer; |
|
46 | + public $trailer_weight_t; |
|
47 | + public $limited_weight_t; |
|
48 | + public $weight_per_axle_t; |
|
49 | + public $truck_height; |
|
50 | + public $truck_width; |
|
51 | + public $truck_length; |
|
52 | + public $truck_hazardous_goods; |
|
53 | + public $truck_axles; |
|
54 | + public $truck_toll_road_usage; |
|
55 | + public $truck_avoid_ferries; |
|
56 | + public $truck_hwy_only; |
|
57 | + public $truck_lcv; |
|
58 | + public $truck_borders; |
|
59 | + public $truck_side_street_adherence; |
|
60 | + public $truck_config; |
|
61 | + public $truck_dim_unit; |
|
62 | + public $truck_type; |
|
63 | + public $truck_weight; |
|
64 | + public $optimization_quality; |
|
65 | + public $override_addresses = []; |
|
66 | + public $max_tour_size; |
|
67 | + public $min_tour_size; |
|
68 | + public $uturn; |
|
69 | + public $leftturn; |
|
70 | + public $rightturn; |
|
71 | + public $route_time_multiplier; |
|
72 | + public $route_service_time_multiplier; |
|
73 | + public $optimization_engine; |
|
74 | + public $is_dynamic_start_time; |
|
75 | + public $bundling; |
|
76 | 76 | |
77 | - public static function fromArray(array $params) |
|
78 | - { |
|
79 | - $routeParams = new self(); |
|
80 | - foreach ($params as $key => $value) { |
|
81 | - if (property_exists($routeParams, $key)) { |
|
82 | - $routeParams->{$key} = $value; |
|
83 | - } |
|
84 | - } |
|
77 | + public static function fromArray(array $params) |
|
78 | + { |
|
79 | + $routeParams = new self(); |
|
80 | + foreach ($params as $key => $value) { |
|
81 | + if (property_exists($routeParams, $key)) { |
|
82 | + $routeParams->{$key} = $value; |
|
83 | + } |
|
84 | + } |
|
85 | 85 | |
86 | - return $routeParams; |
|
87 | - } |
|
86 | + return $routeParams; |
|
87 | + } |
|
88 | 88 | |
89 | - public function setAddressBundle($addressBundle) |
|
90 | - { |
|
91 | - $this->bundling = $addressBundle; |
|
92 | - } |
|
89 | + public function setAddressBundle($addressBundle) |
|
90 | + { |
|
91 | + $this->bundling = $addressBundle; |
|
92 | + } |
|
93 | 93 | |
94 | - public function getAddressBundle() |
|
95 | - { |
|
96 | - return $this->bundling; |
|
97 | - } |
|
94 | + public function getAddressBundle() |
|
95 | + { |
|
96 | + return $this->bundling; |
|
97 | + } |
|
98 | 98 | |
99 | - public static function getAllProperties() |
|
100 | - { |
|
101 | - $routeParams = new self(); |
|
99 | + public static function getAllProperties() |
|
100 | + { |
|
101 | + $routeParams = new self(); |
|
102 | 102 | |
103 | - $fields = array_keys(get_object_vars($routeParams)); |
|
103 | + $fields = array_keys(get_object_vars($routeParams)); |
|
104 | 104 | |
105 | - return $fields; |
|
106 | - } |
|
105 | + return $fields; |
|
106 | + } |
|
107 | 107 | } |
@@ -7,15 +7,15 @@ |
||
7 | 7 | */ |
8 | 8 | class TelematicsVendorsTypes |
9 | 9 | { |
10 | - const TOMTOM = 'tomtom'; |
|
10 | + const TOMTOM = 'tomtom'; |
|
11 | 11 | |
12 | - const TELETRAC = 'teletrac'; |
|
12 | + const TELETRAC = 'teletrac'; |
|
13 | 13 | |
14 | - const AZUGA = 'azuga'; |
|
14 | + const AZUGA = 'azuga'; |
|
15 | 15 | |
16 | - const GEOTAB = 'geotab'; |
|
16 | + const GEOTAB = 'geotab'; |
|
17 | 17 | |
18 | - const SILENT_PASSENGER = 'silentpassenger'; |
|
18 | + const SILENT_PASSENGER = 'silentpassenger'; |
|
19 | 19 | |
20 | - const NEW_TELETRAC = 'new_teletrac'; |
|
20 | + const NEW_TELETRAC = 'new_teletrac'; |
|
21 | 21 | } |
@@ -6,13 +6,13 @@ |
||
6 | 6 | /** Fuel consumption units enumeration. */ |
7 | 7 | class FuelConsumptionUnits |
8 | 8 | { |
9 | - const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
9 | + const LITERS_PER_100_KILOMETERS = 'L/100km'; |
|
10 | 10 | |
11 | - const KILOMETERS_PER_LITER = 'km/l'; |
|
11 | + const KILOMETERS_PER_LITER = 'km/l'; |
|
12 | 12 | |
13 | - const MILES_PER_GALLON_US = 'mpg'; |
|
13 | + const MILES_PER_GALLON_US = 'mpg'; |
|
14 | 14 | |
15 | - const MILES_PER_GALLON_UK = 'mpg uk'; |
|
15 | + const MILES_PER_GALLON_UK = 'mpg uk'; |
|
16 | 16 | |
17 | - const MILES_PER_LITER = 'mi/l'; |
|
17 | + const MILES_PER_LITER = 'mi/l'; |
|
18 | 18 | } |
19 | 19 | \ No newline at end of file |
@@ -4,15 +4,15 @@ |
||
4 | 4 | |
5 | 5 | class AlgorithmType |
6 | 6 | { |
7 | - const STATE_NEW = 0; |
|
8 | - const TSP = 1; |
|
9 | - const VRP = 2; |
|
10 | - const CVRP_TW_SD = 3; |
|
11 | - const CVRP_TW_MD = 4; |
|
12 | - const TSP_TW = 5; |
|
13 | - const TSP_TW_CR = 6; |
|
14 | - const OPTIMIZATION_STATE_IN_QUEUE = 7; |
|
15 | - const ADVANCED_CVRP_TW = 9; |
|
16 | - const ALG_NONE = 100; |
|
17 | - const ALG_LEGACY_DISTRIBUTED = 101; |
|
7 | + const STATE_NEW = 0; |
|
8 | + const TSP = 1; |
|
9 | + const VRP = 2; |
|
10 | + const CVRP_TW_SD = 3; |
|
11 | + const CVRP_TW_MD = 4; |
|
12 | + const TSP_TW = 5; |
|
13 | + const TSP_TW_CR = 6; |
|
14 | + const OPTIMIZATION_STATE_IN_QUEUE = 7; |
|
15 | + const ADVANCED_CVRP_TW = 9; |
|
16 | + const ALG_NONE = 100; |
|
17 | + const ALG_LEGACY_DISTRIBUTED = 101; |
|
18 | 18 | } |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class Metric |
6 | 6 | { |
7 | - const EUCLIDEAN = 1; //measures point to point distance as a straight line |
|
8 | - const MANHATTAN = 2; //measures point to point distance as taxicab geometry line |
|
9 | - const GEODESIC = 3; //measures point to point distance approximating curvature of the earth |
|
10 | - const MATRIX = 4; //measures point to point distance by traversing the actual road network |
|
11 | - const EXACT_2D = 5; //measures point to point distance using 2d rectilinear distance |
|
7 | + const EUCLIDEAN = 1; //measures point to point distance as a straight line |
|
8 | + const MANHATTAN = 2; //measures point to point distance as taxicab geometry line |
|
9 | + const GEODESIC = 3; //measures point to point distance approximating curvature of the earth |
|
10 | + const MATRIX = 4; //measures point to point distance by traversing the actual road network |
|
11 | + const EXACT_2D = 5; //measures point to point distance using 2d rectilinear distance |
|
12 | 12 | } |
@@ -6,7 +6,7 @@ |
||
6 | 6 | /** Vehicle size (height, weidth, length) units. */ |
7 | 7 | class VehicleSizeUnits |
8 | 8 | { |
9 | - const METER = 'm'; |
|
9 | + const METER = 'm'; |
|
10 | 10 | |
11 | - const FOOT = 'ft'; |
|
11 | + const FOOT = 'ft'; |
|
12 | 12 | } |
13 | 13 | \ No newline at end of file |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class DeviceType |
6 | 6 | { |
7 | - const WEB = 'web'; |
|
8 | - const IPHONE = 'iphone'; |
|
9 | - const IPAD = 'ipad'; |
|
10 | - const ANDROID_PHONE = 'android_phone'; |
|
11 | - const ANDROID_TABLET = 'android_tablet'; |
|
7 | + const WEB = 'web'; |
|
8 | + const IPHONE = 'iphone'; |
|
9 | + const IPAD = 'ipad'; |
|
10 | + const ANDROID_PHONE = 'android_phone'; |
|
11 | + const ANDROID_TABLET = 'android_tablet'; |
|
12 | 12 | } |
@@ -4,9 +4,9 @@ |
||
4 | 4 | |
5 | 5 | class TravelMode |
6 | 6 | { |
7 | - const DRIVING = 'Driving'; |
|
8 | - const WALKING = 'Walking'; |
|
9 | - const TRUCKING = 'Trucking'; |
|
10 | - const CYCLING = 'Cycling'; |
|
11 | - const TRANSIT = 'Transit'; |
|
7 | + const DRIVING = 'Driving'; |
|
8 | + const WALKING = 'Walking'; |
|
9 | + const TRUCKING = 'Trucking'; |
|
10 | + const CYCLING = 'Cycling'; |
|
11 | + const TRANSIT = 'Transit'; |
|
12 | 12 | } |