rodgermd/geotools
最新稳定版本:v0.1.0
Composer 安装命令:
composer require rodgermd/geotools
包简介
Geo Tools for PHP 5.4
README 文档
README
PHP implementation of Google Route Boxer
http://gmaps-utility-library-dev.googlecode.com/svn/trunk/routeboxer/src/RouteBoxer.js
Install
add this line to your composer.json
"bazo/geotools" : "v0.1.0"
run composer install
How to use
//add all points from calculated route
$points = [
[48.167, 17.104],
[48.399, 17.586],
[48.908, 18.049],
[49.22253, 18.734436],
[48.728115, 21.255798],
];
$collection = new GeoTools\LatLngCollection($points);
$boxer = new GeoTools\RouteBoxer();
//calculate boxes with 10km distance from the line between points
$boxes = $boxer->box($collection, $distance = 10);
//boxes now contain an array of LatLngBounds
Enjoy
统计信息
- 总下载量: 452
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-11