@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $AvoisanceZoneParameters = AvoidanceZone::fromArray(array( |
26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
27 | - "territory_color" => "ff7700", |
|
28 | - "territory" => $territoryParams |
|
26 | + "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
27 | + "territory_color" => "ff7700", |
|
28 | + "territory" => $territoryParams |
|
29 | 29 | )); |
30 | 30 | |
31 | 31 | $avoidancezone = new AvoidanceZone(); |
@@ -18,14 +18,14 @@ |
||
18 | 18 | |
19 | 19 | $territoryParams['type'] = TerritoryTypes::CIRCLE; |
20 | 20 | $territoryParams['data'] = array( |
21 | - "37.569752822786455,-77.47833251953125", |
|
22 | - "5000" |
|
21 | + "37.569752822786455,-77.47833251953125", |
|
22 | + "5000" |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $TerritoryParameters = Territory::fromArray(array( |
26 | - "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
27 | - "territory_color" => "ff7700", |
|
28 | - "territory" => $territoryParams |
|
26 | + "territory_name" => "Test Territory ".strval(rand(10000,99999)), |
|
27 | + "territory_color" => "ff7700", |
|
28 | + "territory" => $territoryParams |
|
29 | 29 | )); |
30 | 30 | |
31 | 31 | $territory = new Territory(); |
@@ -17,9 +17,9 @@ |
||
17 | 17 | // Example refers to the process of searching for the routed locations |
18 | 18 | |
19 | 19 | $params = array( |
20 | - 'offset' => 0, |
|
21 | - 'limit' => 5, |
|
22 | - 'display' => 'routed' |
|
20 | + 'offset' => 0, |
|
21 | + 'limit' => 5, |
|
22 | + 'display' => 'routed' |
|
23 | 23 | ); |
24 | 24 | |
25 | 25 | $abcResult = $ablocation->searchAddressBookLocations($params); |
@@ -14,10 +14,10 @@ |
||
14 | 14 | $ablocation = new AddressBookLocation(); |
15 | 15 | |
16 | 16 | $params = array( |
17 | - "query" => "David", |
|
18 | - "fields" => "first_name,last_name,address_email, address_alias, address_1", |
|
19 | - "offset" => 0, |
|
20 | - "limit" => 20, |
|
17 | + "query" => "David", |
|
18 | + "fields" => "first_name,last_name,address_email, address_alias, address_1", |
|
19 | + "offset" => 0, |
|
20 | + "limit" => 20, |
|
21 | 21 | ); |
22 | 22 | |
23 | 23 | $abcResult = $ablocation->searchAddressBookLocations($params); |
@@ -27,13 +27,13 @@ |
||
27 | 27 | |
28 | 28 | // Add a file note |
29 | 29 | $noteParameters = array( |
30 | - "strFilename" => "notes.csv", |
|
31 | - "route_id" => $route_id, |
|
32 | - "address_id" => $route_destination_id, |
|
33 | - "dev_lat" => 33.132675170898, |
|
34 | - "dev_lng" => -83.244743347168, |
|
35 | - "device_type" => "web", |
|
36 | - "strUpdateType" => "ANY_FILE" |
|
30 | + "strFilename" => "notes.csv", |
|
31 | + "route_id" => $route_id, |
|
32 | + "address_id" => $route_destination_id, |
|
33 | + "dev_lat" => 33.132675170898, |
|
34 | + "dev_lng" => -83.244743347168, |
|
35 | + "device_type" => "web", |
|
36 | + "strUpdateType" => "ANY_FILE" |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | $address = new Address(); |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $gcParameters = (array)Geocoding::fromArray(array( |
16 | - "offset" => 0, |
|
17 | - "limit" => 5 |
|
16 | + "offset" => 0, |
|
17 | + "limit" => 5 |
|
18 | 18 | )); |
19 | 19 | |
20 | 20 | $geocoding = new Geocoding(); |
@@ -22,6 +22,6 @@ discard block |
||
22 | 22 | $response = $geocoding->getStreetData($gcParameters); |
23 | 23 | |
24 | 24 | foreach ($response as $gcode) { |
25 | - Route4Me::simplePrint($gcode); |
|
26 | - echo "<br>"; |
|
25 | + Route4Me::simplePrint($gcode); |
|
26 | + echo "<br>"; |
|
27 | 27 | } |
@@ -16,13 +16,13 @@ |
||
16 | 16 | $order = new Order(); |
17 | 17 | |
18 | 18 | $orderParameters = Order::fromArray(array( |
19 | - "offset" => 0, |
|
20 | - 'limit' => 5, |
|
19 | + "offset" => 0, |
|
20 | + 'limit' => 5, |
|
21 | 21 | )); |
22 | 22 | |
23 | 23 | $response = $order->getOrders($orderParameters); |
24 | 24 | |
25 | 25 | foreach ($response['results'] as $key => $order) { |
26 | - Route4Me::simplePrint($order); |
|
27 | - echo "<br>"; |
|
26 | + Route4Me::simplePrint($order); |
|
27 | + echo "<br>"; |
|
28 | 28 | } |
@@ -14,9 +14,9 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $orderParameters = Order::fromArray(array( |
17 | - "fields" => "order_id,member_id", |
|
18 | - "offset" => 0, |
|
19 | - "limit" => 5 |
|
17 | + "fields" => "order_id,member_id", |
|
18 | + "offset" => 0, |
|
19 | + "limit" => 5 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $order = new Order(); |
@@ -24,5 +24,5 @@ discard block |
||
24 | 24 | $response = $order->getOrder($orderParameters); |
25 | 25 | |
26 | 26 | foreach ($response as $key => $order) { |
27 | - Route4Me::simplePrint($order); |
|
27 | + Route4Me::simplePrint($order); |
|
28 | 28 | } |
@@ -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 |