向 graphhopper 的本地实例添加额外的车辆

Adding additional vehicles to local instance of graphhopper

我是 graphhopper 的新手,也是一个没有经验的 java 程序员,所以我需要一些帮助来扩展 graphhopper 核心。到目前为止,我所做的是从 here. I'm then able to follow the rest of the instructions and get a local instance up and running just fine and interact with it using R and the API instructions. I would like to add support for bike, foot, and transit routing. As per the answer found here 的快速入门指南中的 link 安装 graphhopper 核心,我首先尝试将 graph.flagEncoders=car 修改为 graph.flagEncoders=car,foot, bike "config-example.properties" 文件。这就是事情失败的地方。尝试在命令提示符下 运行 程序时,此时失败。任何帮助和指导将不胜感激。

编辑:2018 年 8 月 24 日

下面是在 "config-example.properties" 文件中使用 graph.flagEncoders=car,foot, bike 时命令提示符的屏幕截图。请注意,我使用的是快速入门指南中的示例 osm 数据。

根据 Karussell 的评论,在这种情况下,您所要做的就是删除由 Graphhopper 创建的 *.osm-gh 缓存文件夹。