PHP code example of codeblog.pro / geo-coder

1. Go to this page and download the library: Download codeblog.pro/geo-coder 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/ */

    

codeblog.pro / geo-coder example snippets

 php
// Moscow Sheremetyevo International Airport coordinates for example.
$locationOne = $geoCoder->getLocationByCoordinates(55.966784, 37.415715, 'en');
var_dump($locationOne);

// Oslo university address for example
$locationTwo = $geoCoder->getLocationByAddress('Oslo, Problemveien 7, 0315', 'ru');
var_dump($locationTwo);