rubillex / ya-tails-coords
Assistant for converting coordinates to Yandex tails coords.
1.0
2023-09-19 16:40 UTC
Requires
- php: ^8.0
README
This library will help you convert coordinates to yandex tail coords
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();