@@ -13,8 +13,8 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $gcParameters = (array)Geocoding::fromArray(array( |
16 | - "zipcode" => '00601', |
|
17 | - "housenumber" => 17 |
|
16 | + "zipcode" => '00601', |
|
17 | + "housenumber" => 17 |
|
18 | 18 | )); |
19 | 19 | |
20 | 20 | $geocoding = new Geocoding(); |
@@ -22,6 +22,6 @@ discard block |
||
22 | 22 | $response = $geocoding->getService($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 | } |
@@ -19,6 +19,6 @@ |
||
19 | 19 | $response = $geocoding->getStreetData($gcParameters); |
20 | 20 | |
21 | 21 | foreach ($response as $gcode) { |
22 | - Route4Me::simplePrint($gcode); |
|
23 | - echo "<br>"; |
|
22 | + Route4Me::simplePrint($gcode); |
|
23 | + echo "<br>"; |
|
24 | 24 | } |
@@ -13,10 +13,10 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $gcParameters = (array)Geocoding::fromArray(array( |
16 | - "zipcode" => '00601', |
|
17 | - "housenumber" => 17, |
|
18 | - "offset" => 0, |
|
19 | - "limit" => 10 |
|
16 | + "zipcode" => '00601', |
|
17 | + "housenumber" => 17, |
|
18 | + "offset" => 0, |
|
19 | + "limit" => 10 |
|
20 | 20 | )); |
21 | 21 | |
22 | 22 | $geocoding = new Geocoding(); |
@@ -24,6 +24,6 @@ discard block |
||
24 | 24 | $response = $geocoding->getService($gcParameters); |
25 | 25 | |
26 | 26 | foreach ($response as $gcode) { |
27 | - Route4Me::simplePrint($gcode); |
|
28 | - echo "<br>"; |
|
27 | + Route4Me::simplePrint($gcode); |
|
28 | + echo "<br>"; |
|
29 | 29 | } |
@@ -13,7 +13,7 @@ discard block |
||
13 | 13 | Route4Me::setApiKey('11111111111111111111111111111111'); |
14 | 14 | |
15 | 15 | $gcParameters = (array)Geocoding::fromArray(array( |
16 | - "zipcode" => '00601' |
|
16 | + "zipcode" => '00601' |
|
17 | 17 | )); |
18 | 18 | |
19 | 19 | $geocoding = new Geocoding(); |
@@ -21,6 +21,6 @@ discard block |
||
21 | 21 | $response = $geocoding->getZipCode($gcParameters); |
22 | 22 | |
23 | 23 | foreach ($response as $gcode) { |
24 | - Route4Me::simplePrint($gcode); |
|
25 | - echo "<br>"; |
|
24 | + Route4Me::simplePrint($gcode); |
|
25 | + echo "<br>"; |
|
26 | 26 | } |
@@ -27,15 +27,15 @@ |
||
27 | 27 | |
28 | 28 | // Add a custom note to a route |
29 | 29 | $noteParameters = array( |
30 | - 'route_id' => $routeId, |
|
31 | - 'address_id' => $route_destination_id, |
|
32 | - 'format' => 'json', |
|
33 | - 'dev_lat' => 33.132675170898, |
|
34 | - 'dev_lng' => -83.244743347168, |
|
35 | - 'custom_note_type[11]' => 'slippery', |
|
36 | - 'custom_note_type[10]' => 'Backdoor', |
|
37 | - 'strUpdateType' => 'dropoff', |
|
38 | - 'strNoteContents' => 'test1111' |
|
30 | + 'route_id' => $routeId, |
|
31 | + 'address_id' => $route_destination_id, |
|
32 | + 'format' => 'json', |
|
33 | + 'dev_lat' => 33.132675170898, |
|
34 | + 'dev_lng' => -83.244743347168, |
|
35 | + 'custom_note_type[11]' => 'slippery', |
|
36 | + 'custom_note_type[10]' => 'Backdoor', |
|
37 | + 'strUpdateType' => 'dropoff', |
|
38 | + 'strNoteContents' => 'test1111' |
|
39 | 39 | ); |
40 | 40 | |
41 | 41 | $address = new Address(); |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | // Remove a custom note type |
27 | 27 | $noteParameters = array( |
28 | - "id" => $randomCustomNoteID |
|
28 | + "id" => $randomCustomNoteID |
|
29 | 29 | ); |
30 | 30 | |
31 | 31 | $address = new Address(); |
@@ -27,13 +27,13 @@ |
||
27 | 27 | |
28 | 28 | // Add an address note |
29 | 29 | $noteParameters = array( |
30 | - "route_id" => $route_id, |
|
31 | - "address_id" => $route_destination_id, |
|
32 | - "dev_lat" => 33.132675170898, |
|
33 | - "dev_lng" => -83.244743347168, |
|
34 | - "device_type" => "web", |
|
35 | - "strUpdateType" => "dropoff", |
|
36 | - "strNoteContents" => "Test" |
|
30 | + "route_id" => $route_id, |
|
31 | + "address_id" => $route_destination_id, |
|
32 | + "dev_lat" => 33.132675170898, |
|
33 | + "dev_lng" => -83.244743347168, |
|
34 | + "device_type" => "web", |
|
35 | + "strUpdateType" => "dropoff", |
|
36 | + "strNoteContents" => "Test" |
|
37 | 37 | ); |
38 | 38 | |
39 | 39 | $address = new Address(); |
@@ -24,8 +24,8 @@ |
||
24 | 24 | |
25 | 25 | // Update member |
26 | 26 | $params = Member::fromArray(array ( |
27 | - "member_id" => $randomMemberID, |
|
28 | - "member_phone" => "555-777-888" |
|
27 | + "member_id" => $randomMemberID, |
|
28 | + "member_phone" => "555-777-888" |
|
29 | 29 | )); |
30 | 30 | |
31 | 31 | $response = $member->updateMember($params); |
@@ -23,7 +23,7 @@ |
||
23 | 23 | assert(!is_null($randomMemberID), "There is no member of the type SUB_ACCOUNT_DRIVER in the user's account"); |
24 | 24 | |
25 | 25 | // Update member |
26 | -$params = Member::fromArray(array ( |
|
26 | +$params = Member::fromArray(array( |
|
27 | 27 | "member_id" => $randomMemberID, |
28 | 28 | "member_phone" => "555-777-888" |
29 | 29 | )); |
@@ -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>"); |
@@ -13,8 +13,8 @@ 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)), |
|
16 | + "first_name" => "Test FirstName ".strval(rand(10000, 99999)), |
|
17 | + "address_1" => "Test Address1 ".strval(rand(10000, 99999)), |
|
18 | 18 | "cached_lat" => 38.024654, |
19 | 19 | "cached_lng" => -77.338814 |
20 | 20 | )); |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | $address_id = $abcResult["address_id"]; |
32 | 32 | } |
33 | 33 | |
34 | -assert($address_id != -1, "Cannot create an address book location. <br><br>"); |
|
34 | +assert($address_id!=-1, "Cannot create an address book location. <br><br>"); |
|
35 | 35 | |
36 | 36 | echo "Address Book Location with <b>address_id = ".strval($address_id)."</b> and <b>first_name = ".$abcResult['first_name']."</b> was successfully added<br>"; |
37 | 37 | |
@@ -41,6 +41,6 @@ discard block |
||
41 | 41 | |
42 | 42 | assert(isset($abcResult['first_name']), "Cannot update the address book location. <br><br>"); |
43 | 43 | |
44 | -assert($abcResult['first_name'] == 'Test Firstname Updated', "Cannot update the address book location. <br><br>"); |
|
44 | +assert($abcResult['first_name']=='Test Firstname Updated', "Cannot update the address book location. <br><br>"); |
|
45 | 45 | |
46 | 46 | echo "The field <b>first_name</b> in the address book location <b>".$address_id."</b> was update to <b>Test Firstname Updated</b> successfuly <br>"; |