@@ -11,10 +11,10 @@ |
||
11 | 11 | Route4Me::setApiKey('11111111111111111111111111111111'); |
12 | 12 | |
13 | 13 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
14 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
15 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
16 | - "cached_lat" => 38.024654, |
|
17 | - "cached_lng" => -77.338814 |
|
14 | + "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
15 | + "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
16 | + "cached_lat" => 38.024654, |
|
17 | + "cached_lng" => -77.338814 |
|
18 | 18 | )); |
19 | 19 | |
20 | 20 | $abContacts = new AddressBookLocation(); |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
16 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
17 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
18 | - "cached_lat" => 38.024654, |
|
19 | - "cached_lng" => -77.338814 |
|
16 | + "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
17 | + "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
18 | + "cached_lat" => 38.024654, |
|
19 | + "cached_lng" => -77.338814 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $abLocation = new AddressBookLocation(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | assert(isset($abcResult['address_id']), "Cannot create an address book location. <br><br>"); |
29 | 29 | |
30 | 30 | if (isset($abcResult["address_id"])) { |
31 | - $address_id = $abcResult["address_id"]; |
|
31 | + $address_id = $abcResult["address_id"]; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | assert($address_id != -1, "Cannot create an address book location. <br><br>"); |
@@ -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->searchRoutedLocation($params); |
@@ -13,9 +13,9 @@ |
||
13 | 13 | |
14 | 14 | // Get reandom address book location |
15 | 15 | $AdressBookLocationParameters = array( |
16 | - "limit" => 30, |
|
17 | - "offset" => 0 |
|
18 | - ); |
|
16 | + "limit" => 30, |
|
17 | + "offset" => 0 |
|
18 | + ); |
|
19 | 19 | |
20 | 20 | $randomLocation = $abLocation->getRandomAddressBookLocation($AdressBookLocationParameters); |
21 | 21 |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | Route4Me::setApiKey('11111111111111111111111111111111'); |
15 | 15 | |
16 | 16 | $AdressBookLocationParameters = AddressBookLocation::fromArray(array( |
17 | - "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
18 | - "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
19 | - "cached_lat" => 38.024654, |
|
20 | - "cached_lng" => -77.338814 |
|
17 | + "first_name" => "Test FirstName ".strval(rand(10000,99999)), |
|
18 | + "address_1" => "Test Address1 ".strval(rand(10000,99999)), |
|
19 | + "cached_lat" => 38.024654, |
|
20 | + "cached_lng" => -77.338814 |
|
21 | 21 | )); |
22 | 22 | |
23 | 23 | $abContacts = new AddressBookLocation(); |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | $address_id = -1; |
28 | 28 | |
29 | 29 | if (isset($createdCOntact['address_id'])) { |
30 | - $address_id = $createdCOntact["address_id"]; |
|
30 | + $address_id = $createdCOntact["address_id"]; |
|
31 | 31 | } |
32 | 32 | |
33 | 33 | assert($address_id != -1, "Creating of Address Book Location was failed. Try again!.. <br>"); |
@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | // Example refers to getting the address book locations |
14 | 14 | |
15 | 15 | $AdressBookLocationParameters = array( |
16 | - "limit" => 30, |
|
17 | - "offset" => 0 |
|
16 | + "limit" => 30, |
|
17 | + "offset" => 0 |
|
18 | 18 | ); |
19 | 19 | |
20 | 20 | $abContacts = new AddressBookLocation(); |
@@ -25,5 +25,5 @@ discard block |
||
25 | 25 | |
26 | 26 | foreach ($results as $result) { |
27 | 27 | Route4Me::simplePrint($result); |
28 | - echo "<br>"; |
|
28 | + echo "<br>"; |
|
29 | 29 | } |
@@ -14,8 +14,8 @@ discard block |
||
14 | 14 | $ids = ""; |
15 | 15 | |
16 | 16 | $adressBookLocationParameters = array( |
17 | - "limit" => 30, |
|
18 | - "offset" => 0 |
|
17 | + "limit" => 30, |
|
18 | + "offset" => 0 |
|
19 | 19 | ); |
20 | 20 | |
21 | 21 | $abContacts = new AddressBookLocation(); |
@@ -37,6 +37,6 @@ discard block |
||
37 | 37 | $results = $ablocation->getValue($abcResult,"results"); |
38 | 38 | |
39 | 39 | foreach ($results as $result) { |
40 | - Route4Me::simplePrint($result); |
|
41 | - echo "<br>"; |
|
40 | + Route4Me::simplePrint($result); |
|
41 | + echo "<br>"; |
|
42 | 42 | } |
@@ -23,7 +23,7 @@ |
||
23 | 23 | |
24 | 24 | // Get a route with the directions |
25 | 25 | $params = array( |
26 | - "directions" => 1 |
|
26 | + "directions" => 1 |
|
27 | 27 | ); |
28 | 28 | |
29 | 29 | $routeResults = (array)$route->getRoutePoints($route_id,$params); |
@@ -31,8 +31,8 @@ |
||
31 | 31 | $route->parameters = new \stdClass(); |
32 | 32 | |
33 | 33 | $route->parameters->custom_fields = array( |
34 | - "animal" => "tiger", |
|
35 | - "bird" => "canary" |
|
34 | + "animal" => "tiger", |
|
35 | + "bird" => "canary" |
|
36 | 36 | ); |
37 | 37 | |
38 | 38 | $route->httpheaders = 'Content-type: application/json'; |