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

Wrong looping of route when there are multiple loops

Open Dimitar5555 opened this issue 6 months ago • 3 comments

relation/16868619 and relation/16868618

Both routes come from the south, pass through the east terminal first, then the west terminal and go back south. In Relatify it is unclear where they go first. After uploading the changes, I saw that it made them pass the west terminal before the east terminal.

Proper route: Image

Dimitar5555 avatar Jul 03 '25 07:07 Dimitar5555

Is this the same issue as #42 ?

osm-spiregrain avatar Jul 03 '25 09:07 osm-spiregrain

I don't think so. The problem is that Relatify decides to go one direction instead of the other at the T junction. It should be possible to tell Relatify that the route goes via one stop/road first and then via the other. The schema below shows what the routes should look.

Image

Dimitar5555 avatar Jul 03 '25 12:07 Dimitar5555

It should be possible to tell Relatify that the route goes via one stop/road first and then via the other.

The via tag should be able to do the job. If it has a value of Летище София Терминал 2;Летище София Терминал 1, it should be able to find the stops with that names and treat them as "via" points when routing.

Dimitar5555 avatar Jul 10 '25 20:07 Dimitar5555