PHP code example of imageplus / geocoder

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

    

imageplus / geocoder example snippets


 $results = Geocoder::geocode($request->postcode,'googlemaps');
 $latitude = $results['lat'];
$longitude = $results['lng'];

 'providers' => [

        /*
         * Package Service Providers...
         */
        Imageplus\Geocoder\GeocoderServiceProvider::class,

    ],
bash
php artisan vendor:publish