rubillex / ya-tails-coords
坐标转换到 Yandex 尾坐标的助手。
1.0
2023-09-19 16:40 UTC
Requires
- php: ^8.0
README
这个库可以帮助您将坐标转换为 Yandex 尾坐标。
安装
运行 composer require 命令。
composer require rubillex/ya-tails-coords
用法
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();