how to enable hybrid mode in graphhopper for traffic data

北城余情 提交于 2019-12-12 04:15:45

问题


how to enable hybrid mode for graphhopper 0.9 version. in the config file, what all we need to enable/disable/change

my intention is to use traffic data using the link graphhopper-traffic-data-integration

i am not able make it work, when i feed the data using curl, i get below error

{ "message" : "Not found" }

i tried changing the prepare.ch.weightings=hybrid but i get error

now web. JAVA_OPTS=-Xmx1000m -Xms1000m -server
Exception in thread "main" java.lang.IllegalArgumentException: weighting null not supported
    at com.graphhopper.GraphHopper.createWeighting(GraphHopper.java:908)
    at com.graphhopper.GraphHopper.initCHAlgoFactoryDecorator(GraphHopper.java:798)
    at com.graphhopper.GraphHopper.load(GraphHopper.java:738)
    at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:617)
    at com.graphhopper.http.GraphHopperModule$3.start(GraphHopperModule.java:182)
    at com.graphhopper.http.GHServer.start(GHServer.java:118)
    at com.graphhopper.http.GHServer.start(GHServer.java:62)
    at com.graphhopper.http.GHServer.main(GHServer.java:57)

回答1:


If using the hybrid mode you can disable the speed mode:

prepare.ch.weightings=no

and set the default fastest weighting for hybrid:

prepare.lm.weightings=fastest

See the documentation



来源:https://stackoverflow.com/questions/45426814/how-to-enable-hybrid-mode-in-graphhopper-for-traffic-data

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!