rubillex/ya-tails-coords

Assistant for converting coordinates to Yandex tails coords.

1.0 2023-09-19 16:40 UTC

This package is auto-updated.

Last update: 2024-09-20 06:11:43 UTC


README

This library will help you convert coordinates to yandex tail coords

Latest Stable Version Total Downloads PHP Version Require

Installation

Run composer require command.

composer require rubillex/ya-tails-coords

Usage:

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();