Zaczero / osm-relatify

🚍 OpenStreetMap Public Transport Made Easy! — Web Editor
https://relatify.monicz.dev
GNU Affero General Public License v3.0
56 stars 6 forks source link

Relatify mangles route that loops on itself. #42

Open mxxcon opened 1 year ago

mxxcon commented 1 year ago

Route relation 16256011 It's a short route, just 11 stops, but it loops back on itself for 1 street. You can see GTFS feed of it at https://ptna.openstreetmap.de/gtfs/US/single-trip.php?feed=US-NY-MTA-Brooklyn-Bus&release_date=&trip_id=GA_D3-Saturday-028900_Q59_905 image However, when I edit it with Relatify, it incorrectly orders stops 1-6, then 11(which is on the opposite side of the street from 1-8 and should be the last stop), then 7-10. image

JesseWeinstein commented 11 months ago

Another example of a route that loops back and has problems is MBTA bus route 29, shown here: https://ptna.openstreetmap.de/gtfs/US/single-trip.php?feed=US-MA-MBTA&release_date=&trip_id=58870492

The tail that goes off Blue Hill Ave on (and back) on Westview St can't be added in Relatify.

osm-spiregrain commented 10 months ago

Here's another pathological example: Relation 16808482 I believe it's currently mapped correctly via JOSM. It has one 'double back' section into St Austell station, and one bonkers double-back-then loop-around (so that it passes the same ways three times, and the same stops twice) centred around Bojea.

Most of these Cornish routes around St Austell have a least one double-back.

Unsurprisingly, Relatify doesn't display this very helpfully. But I'm not even sure what I'd want it to display for this one.