1. Go to this page and download the library: Download jensostertag/geocoding-util 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/ */
jensostertag / geocoding-util example snippets
use jensostertag\Geocoding\Geocoding;
$geocoding = new Geocoding();
$geocoding->setStreet("James-Franck-Ring")
->setHouseNumber("1")
->setCity("Ulm")
->setZipCode("89081")
->setCountry("Germany");
$coordinates = $geocoding->getCoordinates();
$lat = $coordinates["latitude"];
$lng = $coordinates["longitude"];