Skip to content

TurnRestrictions: support multiple From or To ways #2136

Closed

Description

@boldtrn

Currently the class OSMTurnRelation only holds one from and one to id. However, OSM allows to have multiple from or to ways (see). I haven't see too many restrictions that have this, but it would be nice to support and it should be relatively easy to support.

I see two options to approach this. In OSMReader#createTurnRelation we could check if there are multiple from or to members and create multiple TurnRelations. This approach seems a bit easier to me. The other option would be to change the OSMTurnRelation to contain a List of from and to, but the overhead of a list is probably not worth the benefit?

Activity

  1. changed the title [-]TurnRestrictions: support multple From or To ways[/-] [+]TurnRestrictions: support multiple From or To ways[/+] on Oct 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions