1. Go to this page and download the library: Download dlin/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/ */
dlin / geocoder example snippets
$address = $coder->reverse("-33.86687", "151.19565");
print_r($address);
/* ========= out put ============
Dlin\Geocoder\GeoAddress Object
(
[addressLine1] => 48 Pirrama Rd
[addressLine2] =>
[suburb] => Pyrmont
[state] => NSW
[postcode] => 2009
[country] => Australia
[latitude] => -33.86687
[longitude] => 151.19565
[partial] =>
[formattedAddress] => 5/48 Pirrama Road, Pyrmont NSW 2009, Australia
[geoCoding] => my bing
)
========= end out put ============ */
$config['account nick name'] = array('vendor'=>'[google or bing]', 'weight'=>[weight], 'key'=>'account key', 'client'=>'google client id' );
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.