PHP code example of rentloop / google-geo-code

1. Go to this page and download the library: Download rentloop/google-geo-code 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/ */

    

rentloop / google-geo-code example snippets


'providers' => [
    // ...
    Tjefford\GoogleGeoCode\GoogleGeoCodeServiceProvider::class,
];

'aliases' => [
    // ...
    'Lookup' => Tjefford\GoogleGeoCode\Facades\Lookup::class,
];

use Tjefford\GoogleGeoCode\Lookup;

$lookup = new Lookup;
$lookup->locate('1901 W Madison St', 'Chicago', 'IL');