路线规划graphhopper
下载安装包
下载graphhopper
官网地址 https://graphhopper.com
github 地址 https://github.com/graphhopper/graphhopper
,可以下载自己编译;
直接下载releases版本 https://github.com/graphhopper/graphhopper/releases
, 下载jar
包,和 config-example.yml
文件
下载路网数据
http://download.geofabrik.de/asia.html
选择 asia
china
下载pbf文件
修改配置文件
1 |
|
启动服务
1 |
|
调用服务规划路线
官网demo
提示信息sign
sign | description |
---|---|
-98 | an U-turn without the knowledge if it is a right or left U-turn |
-8 | a left U-turn |
-7 | keep left |
-6 | not yet used: leave roundabout |
-3 | turn sharp left |
-2 | turn left |
-1 | turn slight left |
0 | continue on street |
1 | turn slight right |
2 | turn right |
3 | turn sharp right |
4 | the finish instruction before the last point |
5 | the instruction before a via point |
6 | the instruction before entering a roundabout |
7 | keep right |
8 | a right U-turn |
* | For future compatibility it is important that all clients are able to handle also unknown instruction sign numbers |
路线规划graphhopper
https://zhaops-hub.github.io/2022/04/20/cesium/路线规划graphhopper/