How to use GraphHopper.setEncodingManager?

Hi, I’ve update GraphHopper core into v.4.0.0 from maven central. I have custom encoder amphibi car. I need to custom encoder and set into GraphHopper instance. But latest update remove the method. How can I keep use my custom encoder ?

Use GraphHopper#getEncodingManagerBuilder

graphHopperOsm.getEncodingManagerBuilder().add(new CarFlagEncoder());
Like this yeah ?

This is how you would add the CarFlagEncoder yes. But there are a few more things you might need like the tag parsers. You probably need to take a look at GraphHopper#buildEncodingManager to see what GraphHopper does by default. How did you create the EncodingManager before you tried updating to 4.0?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.