PHP code example of smochin / openstreetmap-php-client

1. Go to this page and download the library: Download smochin/openstreetmap-php-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/ */

    

smochin / openstreetmap-php-client example snippets


$client = new Smochin\OpenStreetMap\Client();

$address = $client->reverse(-8.047562, -34.876964);
shell
composer