Skip to content

Prohibited transition on crossing #238

Answered by sanjibdutta1
Azbesciak asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming that the geometry orientation of the segments are forward i.e segment A (Connector1, Connector2, Connector3) and segment B (Connector5, Connector2, Connector4), the restriction would be modeled as a property on segment B like:

id: segment B
road:
  restrictions:
    prohibited_transitions:
      - sequence:
        - segment_id: segment A
          connector_id: Connector 2
        final_heading: forward
    when:
      heading: forward

When heading:forward will indicate south -> north travel on segment A and final_heading: forward means west->east travel on segment A and the restriction is on connector 2, so there is not ambiguity.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@Azbesciak
Comment options

@sanjibdutta1
Comment options

Answer selected by Azbesciak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants