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

Starting and ending stops close to each other - wrong order

Open mutipg opened this issue 1 year ago • 2 comments

When the start and end stops are close to each other, Relatify does not arrange them in the correct order.

In the picture, each stop 'Dom Marynarza 03' and 'Dom Marynarza 05' have their own points with stop and platform roles and the bus route is arranged in the correct order. Despite this, the stop 'Dom Marynarza 05' was placed second instead of at the end of the list.

RELATION #: 2283346 image image

mutipg avatar Feb 02 '24 11:02 mutipg

The cause of this bug is that the bus stop is matched to the nearest way. So, the starting way has 2 bus stops matched to it. I think a good fix for it would be to match to the nearest way where the bus stop is on the right-hand side, and then optionally fallback to matching any closest way. Thank you for reporting the issue!

Zaczero avatar Feb 02 '24 20:02 Zaczero

I noticed a similar problem when editing this relation, where:

  • Mikołów Dworzec 1 is the starting stop,
  • Mikołów Dworzec 4 is an intermediate stop in the middle of the relation,
  • Mikołów Dworzec 6 is the final stop.

Relatify created the correct route for this bus relation, but unfortunately Mikołów Dworzec 4 was placed in the relation right after the Mikołów Dworzec 1 stop instead of in the middle of it.

https://relatify.monicz.dev/?relation=12187641&load=1

image

mutipg avatar Aug 21 '24 09:08 mutipg