@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'offset' => 0, |
|
15 | - 'limit' => 5, |
|
14 | + 'offset' => 0, |
|
15 | + 'limit' => 5, |
|
16 | 16 | ]); |
17 | 17 | |
18 | 18 | $geoCoding = new Geocoding(); |
@@ -20,6 +20,6 @@ discard block |
||
20 | 20 | $response = $geoCoding->getStreetData($gcParameters); |
21 | 21 | |
22 | 22 | foreach ($response as $gCode) { |
23 | - Route4Me::simplePrint($gCode); |
|
24 | - echo '<br>'; |
|
23 | + Route4Me::simplePrint($gCode); |
|
24 | + echo '<br>'; |
|
25 | 25 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'offset' => 0, |
15 | 15 | 'limit' => 5, |
16 | 16 | ]); |
@@ -11,10 +11,10 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'zipcode' => '00601', |
|
15 | - 'housenumber' => 17, |
|
16 | - 'offset' => 0, |
|
17 | - 'limit' => 10, |
|
14 | + 'zipcode' => '00601', |
|
15 | + 'housenumber' => 17, |
|
16 | + 'offset' => 0, |
|
17 | + 'limit' => 10, |
|
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 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'zipcode' => '00601', |
15 | 15 | 'housenumber' => 17, |
16 | 16 | 'offset' => 0, |
@@ -11,8 +11,8 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'zipcode' => '00601', |
|
15 | - 'housenumber' => 17, |
|
14 | + 'zipcode' => '00601', |
|
15 | + 'housenumber' => 17, |
|
16 | 16 | ]); |
17 | 17 | |
18 | 18 | $geoCoding = new Geocoding(); |
@@ -20,6 +20,6 @@ discard block |
||
20 | 20 | $response = $geoCoding->getService($gcParameters); |
21 | 21 | |
22 | 22 | foreach ($response as $gCode) { |
23 | - Route4Me::simplePrint($gCode); |
|
24 | - echo '<br>'; |
|
23 | + Route4Me::simplePrint($gCode); |
|
24 | + echo '<br>'; |
|
25 | 25 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'zipcode' => '00601', |
15 | 15 | 'housenumber' => 17, |
16 | 16 | ]); |
@@ -11,7 +11,7 @@ |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'pk' => 4, |
|
14 | + 'pk' => 4, |
|
15 | 15 | ]); |
16 | 16 | |
17 | 17 | $geoCoding = new Geocoding(); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'pk' => 4, |
15 | 15 | ]); |
16 | 16 |
@@ -11,9 +11,9 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'zipcode' => '00601', |
|
15 | - 'offset' => 0, |
|
16 | - 'limit' => 20, |
|
14 | + 'zipcode' => '00601', |
|
15 | + 'offset' => 0, |
|
16 | + 'limit' => 20, |
|
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 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'zipcode' => '00601', |
15 | 15 | 'offset' => 0, |
16 | 16 | 'limit' => 20, |
@@ -11,16 +11,16 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $addressList = [ |
14 | - 'Los Angeles International Airport, CA', |
|
15 | - 'n512, Florida Pl, Barberton, OH,44203', |
|
16 | - '3495, Purdue St, Cuyahoga Falls,OH,44221', |
|
14 | + 'Los Angeles International Airport, CA', |
|
15 | + 'n512, Florida Pl, Barberton, OH,44203', |
|
16 | + '3495, Purdue St, Cuyahoga Falls,OH,44221', |
|
17 | 17 | ]; |
18 | 18 | |
19 | 19 | $addressesString = implode('\n', $addressList); |
20 | 20 | |
21 | 21 | $geoCodingParameters = [ |
22 | - 'strExportFormat' => 'json', |
|
23 | - 'addresses' => $addressesString, |
|
22 | + 'strExportFormat' => 'json', |
|
23 | + 'addresses' => $addressesString, |
|
24 | 24 | ]; |
25 | 25 | |
26 | 26 | $fGeoCoding = new Geocoding(); |
@@ -28,13 +28,13 @@ discard block |
||
28 | 28 | $bgResults = $fGeoCoding->forwardGeocoding($geoCodingParameters); |
29 | 29 | |
30 | 30 | if ('json' == $geoCodingParameters['strExportFormat']) { |
31 | - foreach ($bgResults as $bgResult) { |
|
32 | - Route4Me::simplePrint($bgResult); |
|
33 | - echo '<br>'; |
|
34 | - } |
|
31 | + foreach ($bgResults as $bgResult) { |
|
32 | + Route4Me::simplePrint($bgResult); |
|
33 | + echo '<br>'; |
|
34 | + } |
|
35 | 35 | } else { |
36 | - foreach ($bgResults['destination'] as $bgResult) { |
|
37 | - Route4Me::simplePrint($bgResult); |
|
38 | - echo '<br>'; |
|
39 | - } |
|
36 | + foreach ($bgResults['destination'] as $bgResult) { |
|
37 | + Route4Me::simplePrint($bgResult); |
|
38 | + echo '<br>'; |
|
39 | + } |
|
40 | 40 | } |
@@ -27,7 +27,7 @@ |
||
27 | 27 | |
28 | 28 | $bgResults = $fGeoCoding->forwardGeocoding($geoCodingParameters); |
29 | 29 | |
30 | -if ('json' == $geoCodingParameters['strExportFormat']) { |
|
30 | +if ('json'==$geoCodingParameters['strExportFormat']) { |
|
31 | 31 | foreach ($bgResults as $bgResult) { |
32 | 32 | Route4Me::simplePrint($bgResult); |
33 | 33 | echo '<br>'; |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | Route4Me::setApiKey(Constants::API_KEY); |
10 | 10 | |
11 | 11 | $geoCodingParameters = [ |
12 | - 'format' => 'xml', |
|
13 | - 'addresses' => '42.35863,-71.05670', |
|
12 | + 'format' => 'xml', |
|
13 | + 'addresses' => '42.35863,-71.05670', |
|
14 | 14 | ]; |
15 | 15 | |
16 | 16 | $fGeoCoding = new Geocoding(); |
@@ -18,13 +18,13 @@ discard block |
||
18 | 18 | $fgResult = $fGeoCoding->reverseGeocoding($geoCodingParameters); |
19 | 19 | |
20 | 20 | if ('json' == $geoCodingParameters['format']) { |
21 | - foreach ($fgResult as $dest) { |
|
22 | - Route4Me::simplePrint($dest); |
|
23 | - echo '<br>'; |
|
24 | - } |
|
21 | + foreach ($fgResult as $dest) { |
|
22 | + Route4Me::simplePrint($dest); |
|
23 | + echo '<br>'; |
|
24 | + } |
|
25 | 25 | } else { |
26 | - foreach ($fgResult['destination'] as $dest) { |
|
27 | - Route4Me::simplePrint($dest); |
|
28 | - echo '<br>'; |
|
29 | - } |
|
26 | + foreach ($fgResult['destination'] as $dest) { |
|
27 | + Route4Me::simplePrint($dest); |
|
28 | + echo '<br>'; |
|
29 | + } |
|
30 | 30 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $fgResult = $fGeoCoding->reverseGeocoding($geoCodingParameters); |
19 | 19 | |
20 | -if ('json' == $geoCodingParameters['format']) { |
|
20 | +if ('json'==$geoCodingParameters['format']) { |
|
21 | 21 | foreach ($fgResult as $dest) { |
22 | 22 | Route4Me::simplePrint($dest); |
23 | 23 | echo '<br>'; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | 13 | $gcParameters = (array) Geocoding::fromArray([ |
14 | - 'zipcode' => '00601', |
|
14 | + 'zipcode' => '00601', |
|
15 | 15 | ]); |
16 | 16 | |
17 | 17 | $geoCoding = new Geocoding(); |
@@ -19,6 +19,6 @@ discard block |
||
19 | 19 | $response = $geoCoding->getZipCode($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 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | // Set the api key in the Route4me class |
11 | 11 | Route4Me::setApiKey(Constants::API_KEY); |
12 | 12 | |
13 | -$gcParameters = (array) Geocoding::fromArray([ |
|
13 | +$gcParameters = (array)Geocoding::fromArray([ |
|
14 | 14 | 'zipcode' => '00601', |
15 | 15 | ]); |
16 | 16 |
@@ -9,8 +9,8 @@ discard block |
||
9 | 9 | Route4Me::setApiKey(Constants::API_KEY); |
10 | 10 | |
11 | 11 | $geoCodingParameters = [ |
12 | - 'strExportFormat' => 'json', |
|
13 | - 'addresses' => 'Los20%Angeles20%International20%Airport,20%CA', |
|
12 | + 'strExportFormat' => 'json', |
|
13 | + 'addresses' => 'Los20%Angeles20%International20%Airport,20%CA', |
|
14 | 14 | ]; |
15 | 15 | |
16 | 16 | $fGeoCoding = new Geocoding(); |
@@ -18,7 +18,7 @@ discard block |
||
18 | 18 | $fgResult = $fGeoCoding->forwardGeocoding($geoCodingParameters); |
19 | 19 | |
20 | 20 | if ('json' == $geoCodingParameters['strExportFormat']) { |
21 | - Route4Me::simplePrint($fgResult); |
|
21 | + Route4Me::simplePrint($fgResult); |
|
22 | 22 | } else { |
23 | - Route4Me::simplePrint($fgResult['destination']); |
|
23 | + Route4Me::simplePrint($fgResult['destination']); |
|
24 | 24 | } |
@@ -17,7 +17,7 @@ |
||
17 | 17 | |
18 | 18 | $fgResult = $fGeoCoding->forwardGeocoding($geoCodingParameters); |
19 | 19 | |
20 | -if ('json' == $geoCodingParameters['strExportFormat']) { |
|
20 | +if ('json'==$geoCodingParameters['strExportFormat']) { |
|
21 | 21 | Route4Me::simplePrint($fgResult); |
22 | 22 | } else { |
23 | 23 | Route4Me::simplePrint($fgResult['destination']); |