PHP code example of codeblog.pro / geo-coordinates
1. Go to this page and download the library: Download codeblog.pro/geo-coordinates 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-coordinates example snippets
php
$coordinates = new \CodeblogPro\GeoCoordinates\Coordinates(55.4, 43.3);
echo $coordinates->getLatitude();
echo $coordinates->getLongitude();
echo $coordinates->toString();