@@ -23,7 +23,7 @@ |
||
23 | 23 | assert(!is_null($optimizationProblemId), "Can't retrieve a random optimization problem ID"); |
24 | 24 | |
25 | 25 | // Remove an optimization |
26 | -$params = array ( |
|
26 | +$params = array( |
|
27 | 27 | "optimization_problem_ids" => array( |
28 | 28 | "0" => $optimizationProblemId |
29 | 29 | ), |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $orderParameters = Order::fromArray(array( |
17 | - "day_added_YYMMDD" => date("Y-m-d", strtotime('-1 days')), |
|
18 | - "offset" => 0, |
|
19 | - "limit" => 5 |
|
17 | + "day_added_YYMMDD" => date("Y-m-d", strtotime('-1 days')), |
|
18 | + "offset" => 0, |
|
19 | + "limit" => 5 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $order = new Order(); |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | $response = $order->getOrder($orderParameters); |
25 | 25 | |
26 | 26 | foreach ($response['results'] as $key => $order) { |
27 | - Route4Me::simplePrint($order); |
|
28 | - echo "<br>"; |
|
27 | + Route4Me::simplePrint($order); |
|
28 | + echo "<br>"; |
|
29 | 29 | } |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $orderParameters = Order::fromArray(array( |
17 | - "scheduled_for_YYMMDD" => date("Y-m-d", strtotime('-1 days')), |
|
18 | - "offset" => 0, |
|
19 | - "limit" => 5 |
|
17 | + "scheduled_for_YYMMDD" => date("Y-m-d", strtotime('-1 days')), |
|
18 | + "offset" => 0, |
|
19 | + "limit" => 5 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $order = new Order(); |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | $response = $order->getOrder($orderParameters); |
25 | 25 | |
26 | 26 | foreach ($response['results'] as $key => $order) { |
27 | - Route4Me::simplePrint($order); |
|
28 | - echo "<br>"; |
|
27 | + Route4Me::simplePrint($order); |
|
28 | + echo "<br>"; |
|
29 | 29 | } |
@@ -27,10 +27,10 @@ |
||
27 | 27 | $randomOrder['address_2'] = "Lviv"; |
28 | 28 | $randomOrder['EXT_FIELD_phone'] = "032268593"; |
29 | 29 | $randomOrder['EXT_FIELD_custom_data'] = array( |
30 | - 0 => array( |
|
31 | - "customer_no" => "11" |
|
32 | - ) |
|
33 | - ); |
|
30 | + 0 => array( |
|
31 | + "customer_no" => "11" |
|
32 | + ) |
|
33 | + ); |
|
34 | 34 | |
35 | 35 | $response = $order->updateOrder($randomOrder); |
36 | 36 |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | // Remove 2 random orders |
31 | 31 | $orderParameters = Order::fromArray(array( |
32 | - 'order_ids' => array ( |
|
32 | + 'order_ids' => array( |
|
33 | 33 | 0 => $randomOrderID1, |
34 | 34 | 1 => $randomOrderID2, |
35 | 35 | ) |
@@ -16,14 +16,14 @@ |
||
16 | 16 | |
17 | 17 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
18 | 18 | $territoryParams['data'] = array( |
19 | - "37.569752822786455,-77.47833251953125", |
|
20 | - "5000" |
|
19 | + "37.569752822786455,-77.47833251953125", |
|
20 | + "5000" |
|
21 | 21 | ); |
22 | 22 | |
23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
24 | - "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000, 99999)), |
|
25 | - "territory_color" => "ff7700", |
|
26 | - "territory" => $territoryParams |
|
24 | + "territory_name" => "Test Circle Avoidance Zone ".strval(rand(10000, 99999)), |
|
25 | + "territory_color" => "ff7700", |
|
26 | + "territory" => $territoryParams |
|
27 | 27 | )); |
28 | 28 | |
29 | 29 | $avoidancezone = new AvoidanceZone(); |
@@ -16,14 +16,14 @@ |
||
16 | 16 | |
17 | 17 | $territoryParams['type'] = TerritoryTypes::RECT; |
18 | 18 | $territoryParams['data'] = array( |
19 | - "43.51668853502909,-109.3798828125", |
|
20 | - "46.98025235521883,-101.865234375" |
|
19 | + "43.51668853502909,-109.3798828125", |
|
20 | + "46.98025235521883,-101.865234375" |
|
21 | 21 | ); |
22 | 22 | |
23 | 23 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
24 | - "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000, 99999)), |
|
25 | - "territory_color" => "ff7700", |
|
26 | - "territory" => $territoryParams |
|
24 | + "territory_name" => "Test Rectangular Avoidance Zone ".strval(rand(10000, 99999)), |
|
25 | + "territory_color" => "ff7700", |
|
26 | + "territory" => $territoryParams |
|
27 | 27 | )); |
28 | 28 | |
29 | 29 | $avoidancezone = new AvoidanceZone(); |
@@ -12,7 +12,7 @@ |
||
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 |
@@ -16,21 +16,21 @@ |
||
16 | 16 | |
17 | 17 | $territoryParams['type'] = TerritoryTypes::POLY; |
18 | 18 | $territoryParams['data'] = array( |
19 | - "37.769752822786455,-77.67833251953125", |
|
20 | - "37.75886716305343,-77.68974800109863", |
|
21 | - "37.74763966054455,-77.6917221069336", |
|
22 | - "37.74655084306813,-77.68863220214844", |
|
23 | - "37.7502255383101,-77.68125076293945", |
|
24 | - "37.74797991274437,-77.67498512268066", |
|
25 | - "37.73327960206065,-77.6411678314209", |
|
26 | - "37.74430510679532,-77.63172645568848", |
|
27 | - "37.76641925847049,-77.66846199035645" |
|
19 | + "37.769752822786455,-77.67833251953125", |
|
20 | + "37.75886716305343,-77.68974800109863", |
|
21 | + "37.74763966054455,-77.6917221069336", |
|
22 | + "37.74655084306813,-77.68863220214844", |
|
23 | + "37.7502255383101,-77.68125076293945", |
|
24 | + "37.74797991274437,-77.67498512268066", |
|
25 | + "37.73327960206065,-77.6411678314209", |
|
26 | + "37.74430510679532,-77.63172645568848", |
|
27 | + "37.76641925847049,-77.66846199035645" |
|
28 | 28 | ); |
29 | 29 | |
30 | 30 | $AvoidanceZoneParameters = AvoidanceZone::fromArray(array( |
31 | - "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000, 99999)), |
|
32 | - "territory_color" => "ff7700", |
|
33 | - "territory" => $territoryParams |
|
31 | + "territory_name" => "Test Poligonian Avoidance Zone ".strval(rand(10000, 99999)), |
|
32 | + "territory_color" => "ff7700", |
|
33 | + "territory" => $territoryParams |
|
34 | 34 | )); |
35 | 35 | |
36 | 36 | $avoidancezone = new AvoidanceZone(); |