In order to better control speed limits and other routing prioritization I had to create my own FlagEncoder called MyHeavyVehicleFlagEncoder (a copy of HeavyVehicleFlagEncoder for the moment until restrictions work) and added a new DRIVING_MYHGV constant in RoutingProfileType (value of 77 not used before). I also adapted the code so the generation produces the graph folders.
Until here everything looks great and i was able to have two directory in my graphs folder after the generation is done:
- hgv (default folder for heavy vehicle )
- myhgv (new folder for my own heavy vehicle)
But after some tests I discovered that my new profile completely ignores restrictions (height, weight, etc) which is not the case for the default hgv profile.
I’ve been stuck for a month now and i did many tests but with no success.
Any help will be appreciated, thanks.