其他分享
首页 > 其他分享> > MapMatching

MapMatching

作者:互联网

第一步: 生成github tokens 在 Settings / Developer settings / Personal access tokens
  jeshy_git_token
  你自己的Token******72245e4c6*****
第二步: 需要在 mavn安装目录 编辑配置文件 settings.xml
  <server>
    <id>github</id>
    <username>jeshy</username>
    <password>你自己的Token******72245e4c6*****</password>
  </server>
第三步: clone map-matching
  D:\Workspace\GraphHopper>git clone https://github.com/graphhopper/map-matching.git
第四步:
  D:\Workspace\GraphHopper\map-matching>mvn package -DskipTests
第五步:生成 graph-cache
  D:\Workspace\GraphHopper\map-matching>java -jar matching-web/target/graphhopper-map-matching-web-3.0-SNAPSHOT.jar import map-data/leipzig_germany.osm.pbf
第六步:匹配
  D:\Workspace\GraphHopper\map-matching>java -jar matching-web/target/graphhopper-map-matching-web-3.0-SNAPSHOT.jar match matching-web/src/test/resources/test1.gpx
    loading graph from cache
    matching-web\src\test\resources\test1.gpx
    matches: 138, gps entries:264
    gpx length: 9551.638 vs 9536.442
    export results to:D:\Workspace\GraphHopper\map-matching\matching-web\src\test\resources\test1.gpx.res.gpx
    gps import took:0.105556495s, match took: 0.36684602

标签:map,web,MapMatching,GraphHopper,gpx,Workspace,matching
来源: https://www.cnblogs.com/jeshy/p/14350196.html