fstar / coordinate
fangstar coordinate
v0.1.3
2022-11-09 02:06 UTC
Requires
- php: >=7.0.0
- guzzlehttp/guzzle: *
- illuminate/contracts: *
- illuminate/support: *
This package is auto-updated.
Last update: 2024-12-25 04:41:48 UTC
README
介绍
房星科技坐标转换工具
软件架构
laravel
安装教程
1. composer require fstar/coordinate
2. php artisan vendor:publish --provider=Fstar\Coordinate\CoordinateServiceProvider
使用说明
坐标转换接口
$coords_str string $lon,$lat;$lon,$lat;$lon,$lat;$lon,$lat
FsCoordinate::newInstanse()
FsCoordinate::bd09ToGCJ02(float $bd_lat, float $bd_lon)
FsCoordinate::bd09ToWGS84(float $bd_lat, float $bd_lon)
FsCoordinate::gcj02ToBD09(float $lat, float $lon)
FsCoordinate::gcj02ToWGS84(float $lat, float $lon)
FsCoordinate::wgs84ToGCJ02(float $lat, float $lon)
FsCoordinate::wgs84ToBD09(float $lat, float $lon)
FsCoordinate::bd09ToGCJ02Batch(string $coords_str)
FsCoordinate::bd09ToWGS84Batch(string $coords_str)
FsCoordinate::gcj02ToBD09Batch(string $coords_str)
FsCoordinate::gcj02ToWGS84Batch(string $coords_str)
FsCoordinate::wgs84ToGCJ02Batch(string $coords_str)
FsCoordinate::wgs84ToBD09Batch(string $coords_str)
FsCoordinate::gcj02ToBD09Exact(string $coords_str)
FsCoordinate::wgs84ToBD09Exact(string $coords_str)
参与贡献
- 房星科技