endlessmiles/polyline
最新稳定版本:1.0.1
Composer 安装命令:
composer require endlessmiles/polyline
包简介
A comopser package to decode Google Polyline strings into an array of latlng pairs.
README 文档
README
A Laravel composer package to decode Google Polyline strings into an array of GPS coordinate pairs. Compatible with PHP 7.4 or higher.
Installation
Run the following command in the root of your project directory:
composer require endlessmiles/polyline
Use
The package is very simple to use:
$coordinates = Polyline::decode($polylineString);
The function returns an array of pairs of latitude and longitude:
[
[latitute_float1, longitude_float1],
[latitute_float2, longitude_float2],
[latitute_float3, longitude_float3],
]
统计信息
- 总下载量: 1.2k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2022-06-05