Skip to content

🪲 Model network creation doesn't handle ML when road switches to one-way (medians) #433

@lmz

Description

@lmz

Describe the bug

Right now, if there is a section of roadway with a managed lane (say, bus lanes) and there's one section with two-way links (no median) and then it splits, the handling of the new ML nodes doesn't work...

Image

In the above screenshot, the blue links are the original links and you can see they switch to one-way for a period. But (I think) the algorithm creates a unique ML node for each GP node, and so I got errors that the nodes were being created twice, but with different coordinates.

I started to try to fix that by averaging the node coordinates but it doesn't make sense... in this case, the offset means there would be two ML nodes for one-way links and one ML node for two-way links. In theory we could leave the links this way and fix with connectors...

Thoughts on resolution

ML links may need to always be one-way?
Either that or handle this case explicitly, which seems messier to me.

To Reproduce

Failing tests

  • No applicable test failed, need to create.
  • [ ]

Triggering line of code

Full stack trace

Environment

Operating system:
Context (conda, jupyter, etc):
Environment (e.g. output from conda list):

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions