@@ -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 | ]); |
@@ -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, |
@@ -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 | ]); |
@@ -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 |
@@ -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, |
@@ -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>'; |
@@ -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>'; |
@@ -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 |
@@ -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']); |