PHP code example of evoluty / google-maps-client

1. Go to this page and download the library: Download evoluty/google-maps-client 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/ */

    

evoluty / google-maps-client example snippets


$googleClient = new GoogleMapClient('<your_api_key>');

$request = GoogleMapRequest::newTimeZoneRequest(
    new TimeZoneLocation('39.6034810', '-119.6822510')
)->withLanguage(Language::CZECH());

$timeZoneResponse = $googleClient->sendTimeZoneRequest($request);