riverside/php-osrm
最新稳定版本:2.0.0
Composer 安装命令:
composer require riverside/php-osrm
包简介
PHP client for Project-OSRM.
README 文档
README
PHP client for Project-OSRM.
| Build | Stable | License |
|---|---|---|
Installation
- If Composer is already installed
composer require riverside/php-osrm
- If Composer is not installed on your system yet, you may go ahead and install it using this command line:
$ curl -sS https://getcomposer.org/installer | php
Next, add the following require entry to the composer.json file in the root of your project.
{
"require" : {
"riverside/php-osrm" : "^2.0"
}
}
Finally, use Composer to install php-osrm and its dependencies:
$ php composer.phar install
Loading
require __DIR__ . '/vendor/autoload.php';
API
- Nearest - Snaps a coordinate to the street network and returns the nearest
nmatches. - Route - Finds the fastest route between coordinates in the supplied order.
- Table - Computes the duration of the fastest route between all pairs of supplied coordinates. Returns the durations or distances or both between the coordinate pairs.
- Match - Map matching matches/snaps given GPS points to the road network in the most plausible way.
- Trip - Solves the Traveling Salesman Problem using a greedy heuristic (farthest-insertion algorithm) for 10 or more waypoints and uses brute force for less than 10 waypoints.
- Tile - Generates Mapbox Vector Tiles that can be viewed with a vector-tile capable slippy-map viewer.
- Isochrones - Generates travel time isochrones in GeoJSON format.
Links
统计信息
- 总下载量: 23.48k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 11
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-09