PHP code example of filippo-toso / positionstack

1. Go to this page and download the library: Download filippo-toso/positionstack 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/ */

    

filippo-toso / positionstack example snippets


    'positionstack' => [
        'key' => env('POINTSTACK_KEY_ID'),
    ],

$data = PositionStack::forward('1600 Pennsylvania Ave NW, Washington DC');

// ...

$data = PositionStack::reverse('40.7638435,-73.9729691');