@@ -9,6 +9,6 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class FirstItemMode |
| 11 | 11 | { |
| 12 | - const KEEP_ORIGINAL = 1; |
|
| 13 | - const CUSTOM_TIME = 2; |
|
| 12 | + const KEEP_ORIGINAL = 1; |
|
| 13 | + const CUSTOM_TIME = 2; |
|
| 14 | 14 | } |
@@ -9,6 +9,6 @@ |
||
| 9 | 9 | */ |
| 10 | 10 | class MergeMode |
| 11 | 11 | { |
| 12 | - const KEEP_AS_SEPARATE_DESTINATIONS = 1; |
|
| 13 | - const MERGE_INTO_SINGLE_DESTINATION = 2; |
|
| 12 | + const KEEP_AS_SEPARATE_DESTINATIONS = 1; |
|
| 13 | + const MERGE_INTO_SINGLE_DESTINATION = 2; |
|
| 14 | 14 | } |
@@ -11,8 +11,8 @@ |
||
| 11 | 11 | */ |
| 12 | 12 | class Mode |
| 13 | 13 | { |
| 14 | - const ADDRESS = 1; |
|
| 15 | - const COORDINATES = 2; |
|
| 16 | - const ADDRESS_ID = 3; |
|
| 17 | - const ADDRESS_CUSTOM_FIELD = 4; |
|
| 14 | + const ADDRESS = 1; |
|
| 15 | + const COORDINATES = 2; |
|
| 16 | + const ADDRESS_ID = 3; |
|
| 17 | + const ADDRESS_CUSTOM_FIELD = 4; |
|
| 18 | 18 | } |
@@ -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 | } |
@@ -4,7 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | class TerritoryTypes |
| 6 | 6 | { |
| 7 | - const CIRCLE = 'circle'; |
|
| 8 | - const POLY = 'poly'; |
|
| 9 | - const RECT = 'rect'; |
|
| 7 | + const CIRCLE = 'circle'; |
|
| 8 | + const POLY = 'poly'; |
|
| 9 | + const RECT = 'rect'; |
|
| 10 | 10 | } |
@@ -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 | } |
@@ -4,35 +4,35 @@ |
||
| 4 | 4 | |
| 5 | 5 | class ActivityTypes |
| 6 | 6 | { |
| 7 | - const AREA_REMOVED = 'area-removed'; |
|
| 8 | - const AREA_ADDED = 'area-added'; |
|
| 9 | - const AREA_UPDATED = 'area-updated'; |
|
| 10 | - const DELETE_DESTINATION = 'delete-destination'; |
|
| 11 | - const INSERT_DESTINATION = 'insert-destination'; |
|
| 12 | - const DESTINATION_OUT_SEQUENCE = 'destination-out-sequence'; |
|
| 13 | - const DRIVER_ARRIVED_EARLY = 'driver-arrived-early'; |
|
| 14 | - const DRIVER_ARRIVED_LATE = 'driver-arrived-late'; |
|
| 15 | - const DRIVER_ARRIVED_ON_TIME = 'driver-arrived-on-time'; |
|
| 16 | - const GEOFENCE_LEFT = 'geofence-left'; |
|
| 17 | - const GEOFENCE_ENTERED = 'geofence-entered'; |
|
| 18 | - const MARK_DESTINATION_DEPARTED = 'mark-destination-departed'; |
|
| 19 | - const MARK_DESTINATION_VISITED = 'mark-destination-visited'; |
|
| 20 | - const MEMBER_CREATED = 'member-created'; |
|
| 21 | - const MEMBER_DELETED = 'member-deleted'; |
|
| 22 | - const MEMBER_MODIFIED = 'member-modified'; |
|
| 23 | - const MOVE_DESTINATION = 'move-destination'; |
|
| 24 | - const NOTE_INSERT = 'note-insert'; |
|
| 25 | - const ROUTE_DELETE = 'route-delete'; |
|
| 26 | - const ROUTE_OPTIMIZED = 'route-optimized'; |
|
| 27 | - const ROUTE_OWNER_CHANGED = 'route-owner-changed'; |
|
| 28 | - const ROUTE_DUPLICATE = 'route-duplicate'; |
|
| 29 | - const UPDATE_DESTINATIONS = 'update-destinations'; |
|
| 30 | - const USER_MESSAGE = 'user_message'; |
|
| 7 | + const AREA_REMOVED = 'area-removed'; |
|
| 8 | + const AREA_ADDED = 'area-added'; |
|
| 9 | + const AREA_UPDATED = 'area-updated'; |
|
| 10 | + const DELETE_DESTINATION = 'delete-destination'; |
|
| 11 | + const INSERT_DESTINATION = 'insert-destination'; |
|
| 12 | + const DESTINATION_OUT_SEQUENCE = 'destination-out-sequence'; |
|
| 13 | + const DRIVER_ARRIVED_EARLY = 'driver-arrived-early'; |
|
| 14 | + const DRIVER_ARRIVED_LATE = 'driver-arrived-late'; |
|
| 15 | + const DRIVER_ARRIVED_ON_TIME = 'driver-arrived-on-time'; |
|
| 16 | + const GEOFENCE_LEFT = 'geofence-left'; |
|
| 17 | + const GEOFENCE_ENTERED = 'geofence-entered'; |
|
| 18 | + const MARK_DESTINATION_DEPARTED = 'mark-destination-departed'; |
|
| 19 | + const MARK_DESTINATION_VISITED = 'mark-destination-visited'; |
|
| 20 | + const MEMBER_CREATED = 'member-created'; |
|
| 21 | + const MEMBER_DELETED = 'member-deleted'; |
|
| 22 | + const MEMBER_MODIFIED = 'member-modified'; |
|
| 23 | + const MOVE_DESTINATION = 'move-destination'; |
|
| 24 | + const NOTE_INSERT = 'note-insert'; |
|
| 25 | + const ROUTE_DELETE = 'route-delete'; |
|
| 26 | + const ROUTE_OPTIMIZED = 'route-optimized'; |
|
| 27 | + const ROUTE_OWNER_CHANGED = 'route-owner-changed'; |
|
| 28 | + const ROUTE_DUPLICATE = 'route-duplicate'; |
|
| 29 | + const UPDATE_DESTINATIONS = 'update-destinations'; |
|
| 30 | + const USER_MESSAGE = 'user_message'; |
|
| 31 | 31 | |
| 32 | - public static function getConstants() |
|
| 33 | - { |
|
| 34 | - $atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes'); |
|
| 32 | + public static function getConstants() |
|
| 33 | + { |
|
| 34 | + $atc = new \ReflectionClass('Route4Me\\Enum\\ActivityTypes'); |
|
| 35 | 35 | |
| 36 | - return $atc->getConstants(); |
|
| 37 | - } |
|
| 36 | + return $atc->getConstants(); |
|
| 37 | + } |
|
| 38 | 38 | } |