PHP code example of plutuss / here-coding-geo
1. Go to this page and download the library: Download plutuss/here-coding-geo library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
plutuss / here-coding-geo example snippets
$result = GeoCoding::autocomplete('city street houseNumber');
/**
* @var GeoCodingResponseInterface[] $result
*/
foreach ($result as $item) {
echo "{$item->title()} <br/>";
}
shell
php artisan vendor:publish --provider="Plutuss\HerePlatform\Providers\GeoCodingServiceProvider"