PHP code example of hiteshvala / google-map-marker

1. Go to this page and download the library: Download hiteshvala/google-map-marker 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/ */

    

hiteshvala / google-map-marker example snippets


composer 

use HiteshVala\GoogleMapMarker\GoogleMapMarker;

$apiKey = 'YOUR_GOOGLE_MAPS_API_KEY';

$marker = new GoogleMapMarker($apiKey);

$location = $marker->getLocationDetails($lat, $lng);


$address = $marker->getAddressDetails($address);

$timezone = $marker->getTimezone($lat, $lng);