osrm-backend icon indicating copy to clipboard operation
osrm-backend copied to clipboard

Support for conditional access tags

Open danpat opened this issue 8 years ago • 4 comments

With https://github.com/Project-OSRM/osrm-backend/pull/3841, we gained support for conditional turn restrictions.

We should also implement conditional access:conditional tags, example:

https://www.openstreetmap.org/way/242346384

danpat avatar Jul 03 '17 21:07 danpat

@karenzshea can you spec out the tasks that need to be done here?

daniel-j-h avatar Jul 04 '17 09:07 daniel-j-h

We can expand the meaning of our existing conditional restriction flags to include access=conditional tags on non-relation features.

  • During way parsing in extraction, save ways tagged with access:conditional to disk like we do with restrictions with data node ids, is_only and opening hours.
    • this will probably require a new osrm file, or we'll need to figure out how to make them share the .osrm.restrictions file
    • we can maybe genericize the serializer for both restricted turns and ways
  • In the update handler (shared by contraction/customization) parse way restrictions and apply them if the condition is valid
  • Tests

A lot of the hard work is already in place, like condition validation and time zone handling, so this shouldn't be as complicated of a lift as conditional turns.

karenzshea avatar Jul 04 '17 15:07 karenzshea

Do we support conditional access now?

xuruiray avatar Dec 19 '22 03:12 xuruiray

Do we support conditional access now?

Still not supported, tested today.

This feature is referenced by: https://github.com/Project-OSRM/osrm-backend/issues/4300 https://github.com/Project-OSRM/osrm-backend/issues/5801 https://github.com/Project-OSRM/osrm-backend/issues/6706

joaommartins avatar Dec 01 '23 06:12 joaommartins