Hi Phil,
good question ! We’ve decided to keep them closed source for now, as these are very specific needs although we see the generic application as e.g. the creation is relative powerful mechanism:
public static final TruckFlagEncoder createSmallTruck(String name) {
return new TruckFlagEncoder().setName(name).
setHeight(2.7).setWidth(2, 0.4).setLength(5.5).
setWeight(2080, 2080 + 1400).
init();
}
In general this is not really a big task to implement this with a bit of GraphHopper knowledge, but the specific things in OSM can get VERY ugly: https://www.openstreetmap.org/user/karussell/diary/36220
Of course, in the next months we’ll make creating such new profiles a lot easier without the need to understand or workaround the underlying OSM structure. See the related post: More flexibility in GraphHopper