PHP code example of rubillex / ya-tails-coords
1. Go to this page and download the library: Download rubillex/ya-tails-coords 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/ */
rubillex / ya-tails-coords example snippets
use Rubillex\YaTailsCoords\Converter;
$lat = '37.3345208';
$lon = '-122.0913298';
$coords = Converter::CoordsToTailsTranslate($lat, $lon);
$tailX = $coords->getTailX();
$tailY = $coords->getTailY();
/**
* ['tail_x', 'tail_y']
*/
$tails = $coords->toArray();