I downloaded the and installed the opernrouteservice with docker to create routing profiles for a few different emergency vehicles (ambulance, firetruck, forest fire truck, …). I want to adapt the ors-config.yml file to reflect some changes to the standard driving-car or driving-hgv profiles for these vehicles. but I’m having a hard time figuring out what setting I need to adapt.
I want to create an ambulance profile that can route over roads that have an emergency=yes or emergency=*.
I want a firetruck profile that can:
route over emergency=*
considers maxweight
considers maxwitdh
considers maxheight
I want a forest firetruck profile that does all of the above + can route over barrier=sump_buster.
If that works I will probably want to play with maxspeed on different types of road and try to take on routing over removable, rising, foldable and flexible bollards with a certain penalty.
Can someone point me in the right direction to modify the ors-config.yml file or how to craft good custom_model api calls or a combination of both?
To use the maxweight/-width/-height limits you might want to use the hgv profile. It’s also able to route over ways with OSM access=forestry once you specify options.vehicle_type=forestry in your query.
To enable routing over barrier=sump_buster you will need to edit the JAVA source files, as this is not something which can be done at the configuration level. As a starting point for your experiments you could take the hgv vehicle profile.
Last but not least, for modifying the default speed values, please have a look at: