PHP code example of mauro-moreno / openstreetmap-api-client

1. Go to this page and download the library: Download mauro-moreno/openstreetmap-api-client 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/ */

    

mauro-moreno / openstreetmap-api-client example snippets



$config = [
    'format' => 'json'
];
$client = new MauroMoreno\OpenStreetMap\NominatimClient($config);
$client->reverse(40.748817, -73.985428);

// Returns Empire State address.