PHP code example of survos / geonames-bundle

1. Go to this page and download the library: Download survos/geonames-bundle 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/ */

    

survos / geonames-bundle example snippets


$names = $this->geoService->alternateNames(3054643, 'HU'); // Budapest
// ['de' => ['Budapest', 'Ofen-Pest'], 'ru' => ['Будапешт'], 'sk' => ['Budapešť'], ...]

$geoId = $this->geoService->find('Oslo');