基于 graphhopper/map-matching 实现
https://github.com/graphhopper/map-matching
国内加速项目:
https://gitee.com/manonghome/map-matching
map-matching的生成参考:
使用graphhopper(map-matching)进行地图匹配
map-matching编译生成比较麻烦,特别是被墙的情况下,这是生成好的jar包
map-matching.zip
生成 graph-cache
java -jar graphhopper-map-matching-web-3.0-SNAPSHOT.jar import guangxi-latest.osm.pbf
匹配
java -jar graphhopper-map-matching-web-3.0-SNAPSHOT.jar match test1.gpx
web启动
java -jar graphhopper-map-matching-web-3.0-SNAPSHOT.jar server config.yml
路线规划API
http://localhost:8989/route?point=22.815811066579542%2C108.32804765209262&point=22.833897710582203%2C108.36660922414482&profile=car&locale=zh_CN
轨迹纠偏API
http://localhost:8989/match?vehicle=car&type=json
Content-Type: application/gpx+xml
请求体:gpx文件内容