@@ -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']); |
@@ -18,7 +18,7 @@ |
||
| 18 | 18 | |
| 19 | 19 | $randomLocation = $abLocation->getRandomAddressBookLocation($AddressBookLocationParameters); |
| 20 | 20 | |
| 21 | -if (assert(null != $randomLocation, 'Cannot get a randoma address book location')); |
|
| 21 | +if (assert(null!=$randomLocation, 'Cannot get a randoma address book location')); |
|
| 22 | 22 | |
| 23 | 23 | // Get the address book location by address_id |
| 24 | 24 | $addressID = $randomLocation['address_id']; |
@@ -43,5 +43,5 @@ |
||
| 43 | 43 | $problems = OptimizationProblem::optimize($optimizationParams); |
| 44 | 44 | |
| 45 | 45 | foreach ($problems as $problem) { |
| 46 | - Route4Me::simplePrint($problem, true ); |
|
| 46 | + Route4Me::simplePrint($problem, true); |
|
| 47 | 47 | } |
@@ -28,7 +28,7 @@ |
||
| 28 | 28 | $address_id = $createdContact['address_id']; |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | -assert($address_id != -1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
| 31 | +assert($address_id!=-1, 'Creating of Address Book Location was failed. Try again!.. <br>'); |
|
| 32 | 32 | |
| 33 | 33 | echo 'Address Book Location with address_id = '.strval($address_id).' was successfully added<br>'; |
| 34 | 34 | |