osm-relatify icon indicating copy to clipboard operation
osm-relatify copied to clipboard

Feature Wish: Select ways more than once

Open mcliquid opened this issue 1 year ago • 9 comments

Sometimes a bus travels one and the same road up, reaches the bus stop and turns around on the road and travels the same way back. For this reason, it should be possible to select routes several times in order to establish the connection correctly.

mcliquid avatar Jun 20 '23 12:06 mcliquid

The routing engine should be smart enough to figure such cases out, do you have any specific example in mind? You should make sure to turn on all applicable bus stops as this affects the routing engine behavior.

Zaczero avatar Jun 20 '23 13:06 Zaczero

Yes, I just created this relation and wanted to complete it: https://www.openstreetmap.org/relation/15999105

OSM location: https://www.openstreetmap.org/#map=19/47.26091/10.08743 The bus turns left here, drives up to the bus stop, turns around there and drives back down to the main road.

Sadly I cannot save my current effort and all changes are lost :(

image

EDIT: I've created a loop as a workaround here to be able to save the relation :)

mcliquid avatar Jun 20 '23 13:06 mcliquid

Ah, I see, so basically the bus reverses 'in-place'. I am now curious how should the relation structure look like in this case, is the way member repeated twice (once per each time that bus traverses the road-length), or just once? Talking about the type=way in https://www.openstreetmap.org/api/0.6/relation/2634688.

Zaczero avatar Jun 20 '23 13:06 Zaczero

Hm, in JOSM you then simply have the same path twice among each other and on the right the connection connects accordingly. image

mcliquid avatar Jun 20 '23 13:06 mcliquid

One of the most challenging routes to fix in Munich area (if broken, not correctly sorted) is Bus 901

Bus 901 with multiple use of several roads in same or reverse direction

This one is correct but cannot be calculated by Relatify

osm-ToniE avatar Jun 20 '23 14:06 osm-ToniE

One of the most challenging routes to fix in Munich area (if broken, not correctly sorted) is Bus 901

Bus 901 with multiple use of several roads in same or reverse direction

This one is correct but cannot be calculated by Relatify

Oh... did I ever say Relatify will only handle 99% of the cases :smile:

There is a balance between app simplicity and handling all the scenarios, and this particular route is definitely outside the current scope of my work. The idea behind Relatify is to automatically generate routes based on a set of bus stops and ways. However, if those two options fail, it is recommended to use more advanced tools like JOSM.

Zaczero avatar Jun 20 '23 14:06 Zaczero

Hm, in JOSM you then simply have the same path twice among each other and on the right the connection connects accordingly. image

I will see whether I can add support for such cases. This looks doable but no promises.

Zaczero avatar Jun 20 '23 14:06 Zaczero

There is a balance between app simplicity and handling all the scenarios, ...

I absolutely agree to this.

osm-ToniE avatar Jun 20 '23 15:06 osm-ToniE

I have another example if it helps with testing. https://www.openstreetmap.org/relation/11834596#map=18/50.64469/-1.17701

Cj-Malone avatar Jul 02 '23 13:07 Cj-Malone