PHP code example of langleyfoxall / simple-google-maps
1. Go to this page and download the library: Download langleyfoxall/simple-google-maps 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/ */
langleyfoxall / simple-google-maps example snippets
// Standard authentication:
$simpleGoogleMaps = SimpleGoogleMapsFactory::getByKey(getenv('KEY'));
// Enterprise / premium plan authentication:
$simpleGoogleMaps = SimpleGoogleMapsFactory::getByClientNameAndCryptKey(getenv('CLIENT_NAME'), getenv('CRYPT_KEY'));
$latLng = $simpleGoogleMaps->geocode('10 Downing St, Westminster, London SW1A UK');