1. Go to this page and download the library: Download devpack/geo-fetcher 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/ */
devpack / geo-fetcher example snippets
use DevPack\GeoFetcher\GeoFetcher;
$geoFetcher = new GeoFetcher([
'apiKey' => 'yourApiKey', // O 639-1
]);
// Feth coordinates from adress - parameter must be array
$result = $geoFetcher->fetchCoordinates(
['Kielce, Mickiewicza 1'],
);