rubillex/ya-tails-coords

坐标转换到 Yandex 尾坐标的助手。

1.0 2023-09-19 16:40 UTC

This package is auto-updated.

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


README

这个库可以帮助您将坐标转换为 Yandex 尾坐标。

Latest Stable Version Total Downloads PHP Version Require

安装

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