@@ -19,9 +19,9 @@ |
||
| 19 | 19 | |
| 20 | 20 | // Re-sequence all addresses |
| 21 | 21 | $params = [ |
| 22 | - 'route_id' => $route_id, |
|
| 23 | - 'disable_optimization' => 0, |
|
| 24 | - 'optimize' => 'Distance', |
|
| 22 | + 'route_id' => $route_id, |
|
| 23 | + 'disable_optimization' => 0, |
|
| 24 | + 'optimize' => 'Distance', |
|
| 25 | 25 | ]; |
| 26 | 26 | |
| 27 | 27 | $reSequence = $route->resequenceAllAddresses($params); |
@@ -24,8 +24,8 @@ |
||
| 24 | 24 | $route->parameters = new \stdClass(); |
| 25 | 25 | |
| 26 | 26 | $route->parameters = [ |
| 27 | - 'route_id' => $route_id, |
|
| 28 | - 'unlink_from_master_optimization' => true, |
|
| 27 | + 'route_id' => $route_id, |
|
| 28 | + 'unlink_from_master_optimization' => true, |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | $route->httpheaders = 'Content-type: application/json'; |
@@ -28,10 +28,10 @@ |
||
| 28 | 28 | $route->parameters = new \stdClass(); |
| 29 | 29 | |
| 30 | 30 | $route->parameters = [ |
| 31 | - 'member_id' => $randomRoute->member_id, |
|
| 32 | - 'optimize' => 'Distance', |
|
| 33 | - 'route_max_duration' => '82400', |
|
| 34 | - 'route_name' => 'updated '.date('m-d-Y'), |
|
| 31 | + 'member_id' => $randomRoute->member_id, |
|
| 32 | + 'optimize' => 'Distance', |
|
| 33 | + 'route_max_duration' => '82400', |
|
| 34 | + 'route_name' => 'updated '.date('m-d-Y'), |
|
| 35 | 35 | ]; |
| 36 | 36 | |
| 37 | 37 | $route->httpheaders = 'Content-type: application/json'; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | $route->parameters = new \stdClass(); |
| 41 | 41 | |
| 42 | 42 | $route->parameters = [ |
| 43 | - 'member_id' => $randomUserID, |
|
| 43 | + 'member_id' => $randomUserID, |
|
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | 46 | $route->httpheaders = 'Content-type: application/json'; |
@@ -19,9 +19,9 @@ |
||
| 19 | 19 | |
| 20 | 20 | // Share a route with an email |
| 21 | 21 | $params = [ |
| 22 | - 'route_id' => $route_id, |
|
| 23 | - 'response_format' => 'json', |
|
| 24 | - 'recipient_email' => '[email protected]', |
|
| 22 | + 'route_id' => $route_id, |
|
| 23 | + 'response_format' => 'json', |
|
| 24 | + 'recipient_email' => '[email protected]', |
|
| 25 | 25 | ]; |
| 26 | 26 | |
| 27 | 27 | $result = $route->shareRoute($params); |
@@ -16,9 +16,9 @@ discard block |
||
| 16 | 16 | $vehicle = new Vehicles\Vehicle(); |
| 17 | 17 | |
| 18 | 18 | $vehicleParameters = [ |
| 19 | - 'with_pagination' => true, |
|
| 20 | - 'page' => 1, |
|
| 21 | - 'perPage' => 10, |
|
| 19 | + 'with_pagination' => true, |
|
| 20 | + 'page' => 1, |
|
| 21 | + 'perPage' => 10, |
|
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | $response = $vehicle->getVehicles($vehicleParameters); |
@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | $route->parameters = new \stdClass(); |
| 41 | 41 | |
| 42 | 42 | $route->parameters = [ |
| 43 | - 'vehicle_id' => $vehicleId, |
|
| 43 | + 'vehicle_id' => $vehicleId, |
|
| 44 | 44 | ]; |
| 45 | 45 | |
| 46 | 46 | $route->httpheaders = 'Content-type: application/json'; |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | Route4Me::setApiKey(Constants::API_KEY); |
| 10 | 10 | |
| 11 | 11 | $RouteParameters = [ |
| 12 | - 'start_date' => '2019-08-01', |
|
| 13 | - 'end_date' => '2019-08-05' |
|
| 12 | + 'start_date' => '2019-08-01', |
|
| 13 | + 'end_date' => '2019-08-05' |
|
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | 16 | $route = new Route(); |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | $routeResults = $route->getRoutes($RouteParameters); |
| 19 | 19 | |
| 20 | 20 | foreach ($routeResults as $routeResult) { |
| 21 | - $results = (array) $routeResult; |
|
| 21 | + $results = (array) $routeResult; |
|
| 22 | 22 | |
| 23 | - Route4Me::simplePrint($results); |
|
| 23 | + Route4Me::simplePrint($results); |
|
| 24 | 24 | |
| 25 | - echo '<br>'; |
|
| 25 | + echo '<br>'; |
|
| 26 | 26 | } |
| 27 | 27 | \ No newline at end of file |
@@ -18,14 +18,14 @@ |
||
| 18 | 18 | assert(!is_null($route_id), "Cannot retrieve a random route ID"); |
| 19 | 19 | |
| 20 | 20 | $params = [ |
| 21 | - 'route_id' => $route_id, |
|
| 21 | + 'route_id' => $route_id, |
|
| 22 | 22 | ]; |
| 23 | 23 | |
| 24 | 24 | $status = $route->resequenceAllAddresses($params); |
| 25 | 25 | |
| 26 | 26 | $params = [ |
| 27 | - 'route_id' => $route_id, |
|
| 28 | - 'original' => 1 |
|
| 27 | + 'route_id' => $route_id, |
|
| 28 | + 'original' => 1 |
|
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | 31 | $routeWithOriginRoute = $route->getRoutes($params); |
@@ -9,8 +9,8 @@ discard block |
||
| 9 | 9 | Route4Me::setApiKey(Constants::API_KEY); |
| 10 | 10 | |
| 11 | 11 | $RouteParameters = [ |
| 12 | - 'limit' => 30, |
|
| 13 | - 'offset' => 0, |
|
| 12 | + 'limit' => 30, |
|
| 13 | + 'offset' => 0, |
|
| 14 | 14 | ]; |
| 15 | 15 | |
| 16 | 16 | $route = new Route(); |
@@ -18,9 +18,9 @@ discard block |
||
| 18 | 18 | $routeResults = $route->getRoutes($RouteParameters); |
| 19 | 19 | |
| 20 | 20 | foreach ($routeResults as $routeResult) { |
| 21 | - $results = (array) $routeResult; |
|
| 21 | + $results = (array) $routeResult; |
|
| 22 | 22 | |
| 23 | - Route4Me::simplePrint($results); |
|
| 23 | + Route4Me::simplePrint($results); |
|
| 24 | 24 | |
| 25 | - echo '<br>'; |
|
| 25 | + echo '<br>'; |
|
| 26 | 26 | } |