| Forum | GitHub | Maps | Blog

Question about wrong Route / closed roads



I have a question regarding getting sometimes wrong routes.

An example can be seen here:

The wanted/correct route would be somehow like this:

What is the reason that graphhopper uses the longer route? Is there a road blocked/closed or any maintenance so graphhopper ignores that road?

Thanks in advance,


There can be various reasons. In this case it is the bollard which access condition we currently cannot handle and therefor block access:


Ah okay, now that makes sense.

I’m going to check if there is any method to extract/remove these bollard from the .pbf file before starting Graphhopper / or just ignore bollards completely in graphhopper.

Thank you for the fast response!


If the bollard is not there in the real world, you could remove it from osm. If it’s there but you can drive past it, you should set access=yes.



Hi, how do you handle conditionally accessible roads like e.g. Tioga Road? ( GraphHopper doesn’t calculate route through it in July despite the road is closed from Nov to May (expressed in parameter access:conditional no @ (Nov-May))


Per default we ignore such conditional access tags (for the open source routing engine) but you can enable this.

On GraphHopper Maps it is enabled and it calculates a route if it is tagged like this in July but will fail in May:

E.g. for car we had an import problem that will be hopefully fixed tomorrow and so it currently reflects how it should be in May.