GraphHopper.com | Forum | GitHub | Maps | Blog

Configured graph.ch.weightings: [fastest|car, fastest|foot, fastest|bike] is not equal to loaded [fastest|car, shortest|car, fastest|foot, shortest|foot, fastest|bike, shortest|bike]


#1

I create car、bike、foot data once,then test ,but it is error, like this:

Exception in thread “main” java.lang.IllegalStateException: Configured graph.ch.weightings: [fastest|car, fastest|foot, fastest|bike] is not equal to loaded [fastest|car, shortest|car, fastest|foot, shortest|foot, fastest|bike, shortest|bike]
at com.graphhopper.storage.GraphHopperStorage.loadExisting(GraphHopperStorage.java:254)
at com.graphhopper.GraphHopper.load(GraphHopper.java:781)
at com.graphhopper.GraphHopper.importOrLoad(GraphHopper.java:637)
at com.sitemap.test.Test.main(Test.java:22)


#2

You have to remove the graph-cache folder before you can use changes of the weighting and vehicle profiles.