OSM Tags and Penalty Rules in OpenRouteService for Narrow Bidirectional Roads

I’m in the midst of exploring OpenRouteService to understand the supported OSM tags for identifying narrow roads that permit bidirectional traffic in the default car profile. Additionally, I’m interested in the penalty rules:

  • Are there penalties for roads with a width less than X?
  • Are there any minimum requirements for width?
  • Does the number of lanes play a role?
  • Are there any other supported tags?

If you have any pointers to the relevant code, I’d greatly appreciate it!


I’ll try to answer your questions to the best of my abilities:


No. We’re mainly using highway tags to determine if a road is driveable.


Yes. Have a look here.

If you’re looking for the code, this should all be done in the CarFlagEncoder or classes it inherits from.

Best regards