PHP code example of dimsog / php-geo-image

1. Go to this page and download the library: Download dimsog/php-geo-image 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/ */

    

dimsog / php-geo-image example snippets


use Dimsog\Geoimage\Coordinates;

$coordinates = Coordinates::extract(__DIR__ . '/image.jpg');

// $coordinates is:
// [
//      53.144123 (Latitude),
//      35.369734 (Longitude)
// ]
bash
composer