GH 3.2 - Custom Model - model.addToPriority causing empty routes (resolved)

For Java it is even easier as we have many tests :slight_smile:
See https://github.com/graphhopper/graphhopper/blob/master/web/src/test/java/com/graphhopper/http/resources/RouteResourceCustomModelLMTest.java
and https://github.com/graphhopper/graphhopper/blob/master/web/src/test/java/com/graphhopper/http/resources/RouteResourceCustomModelTest.java (see e.g. profile car_no_unclassified)

E.g. if you want to add a CH preparation for your car profile and the custom_veh profile in your code above you just append:

...
.setCHProfiles(Arrays.asList(new CHProfile("car"), new CHProfile("custom_veh")));
1 Like