Skip to content

Support :backward and :forward direction restrictions #205

Closed

Description

@dubyk

Current access restrictions always apply to vehicles on the road, while in reality the rules could be different in both directions.

Look also here:
http://wiki.openstreetmap.org/wiki/Key:access#One-way_restrictions
http://wiki.openstreetmap.org/wiki/Forward_%26_backward,_left_%26_right#Forward_and_backward

Commonly used:

vehicle:backward=no (is the same as oneway=yes )
vehicle:forward=no (is the same as oneway=-1)

motor_vehicle:backward=no
motor_vehicle:forward=no
(movement in one direction is prohibited only for motor vehicles)
Look also: http://overpass-turbo.eu/?template=key&key=motor_vehicle:backward

maxspeed:forward=* (maximum speed which only applies in forward direction )
maxspeed:backward=*

lanes:backward=* (number of lanes in backward direction)
lanes:forward=* (number of lanes in forward direction)

Activity

  1. karussell commented on May 14, 2014

    @karussell
    Member

    Do you found a specific problem (link)? maxspeed* should be already properly handled, lanes* is something we currently do not take into account at all.

  2. karussell commented on May 17, 2014

    @karussell
    Member

    Thanks, I'll have a look!

  3. added this to the 0.4 milestone on May 17, 2014
  4. changed the title [-]Support :backward and :forward direction restrctions[/-] [+]Support :backward and :forward direction restrictions[/+] on Aug 18, 2014
  5. modified the milestones: 0.4, 0.5 on Aug 18, 2014
  6. modified the milestones: 0.4, 0.5 on Mar 2, 2015
  7. karussell commented on Mar 3, 2015

    @karussell
    Member

    The lane support is a different issue (feel free to create one). The other requests (restriction and maxspeed) is now implemented. Will be live tomorrow.

  8. karussell commented on Mar 3, 2015

    @karussell
    Member

    Hmmh, we should apply different speeds if they differ. Currently we just take the minimum value, thanks @jansoe for pointing me to this again :)

    Therefor we need a similar behaviour like with Bike2WeightFlagEncoder which allows storing two weights per edge. As this has significant impact on hardware requirement for the speed-up mode we should make this a configurable. Reopening but moving to another release.

  9. removed this from the 0.4 milestone on Mar 3, 2015
  10. jessLryan commented on Jan 17, 2023

    @jessLryan
    Contributor

    I would like to contribute but I can't quite work out what the remaining issues are, is anyone still working on this?

  11. karussell commented on Jan 18, 2023

    @karussell
    Member

    We already had motor_vehicle:backward/forward implemented and yesterday I implemented the maxspeed:backward/forward handling for car (#2727).

    The remaining bit is regarding lanes. Have a look into OSMLanesParser and you would need to set the lanes EncodedValue to storeTwoDirections=true.

    See also #1269 for a PR that needs to be adapted to the current code, which added full lane support. This would be nice and something you could work on.

  12. jessLryan commented on Jan 19, 2023

    @jessLryan
    Contributor

    We already had motor_vehicle:backward/forward implemented and yesterday I implemented the maxspeed:backward/forward handling for car (#2727).

    The remaining bit is regarding lanes. Have a look into OSMLanesParser and you would need to set the lanes EncodedValue to storeTwoDirections=true.

    See also #1269 for a PR that needs to be adapted to the current code, which added full lane support. This would be nice and something you could work on.

    Thanks so much, I'll have a go :-)

  13. Vinay00018 commented on Nov 14, 2024

    @Vinay00018

    hey I want to contribute to this project ,how can i do

  14. karussell commented on Nov 14, 2024

    @karussell
    Member

    I'll close here as everything seems to be fixed. If there is a more specific demand please create a new issue.

  15. Vinay00018 commented on Nov 14, 2024

    @Vinay00018

    I am doing this for the first time
    I cant able to understand these things

  16. karussell commented on Nov 14, 2024

    @karussell
    Member

    For questions please use our forum. For a github introduction use: https://docs.github.com/get-started

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueosm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions