Create Route with time-restriction

I have a route via restriction " no_left_turn @ (06:00-08:00,10:30-12:00,16:00-18:00)" but it’s not work on graphHopper but Valhalla alreadt supported.
Here is tag restriction on OSM


GrapHopper not work with time restriction

Valhalla work well

So How can I implement time restriction on graphHopper ?

I found the simple ways to customize this !

  • In parseRestrictionTags() method, I solved and add all restrictions tags into a list and save to turncostStorage.
  • when routing, when calcWeight, I’ll check if current time is in range, return Double.MAX_VALUE
    It’s work for me :smiley: