Zaczero / osm-relatify

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

public_transport=platform without highway=bus_stop are ignored #65

Open contrapunctus-1 opened 10 months ago

contrapunctus-1 commented 10 months ago

I tried opening the bus route 199 in Relatify. The ways are displayed correctly, but none of the platform members are displayed, and Relatify claims that the relation has less than two stops.

I suspect this is because the stops are all tagged public_transport=platform and bus=yes, without highway=bus_stop...which is perfectly valid PTv2 tagging, as far as I know.

(I could work around this by adding highway=bus_stop tags, but that is superfluous and ugly. It also hinders support for PTv2 in stubborn consumers like osm-carto.)

Zaczero commented 10 months ago

I read the wiki again:

Historically, a variety of tags have been used, each for a different mode, including highway=bus_stop (for bus stops), railway=platform (for railway, tram and subway platforms), aeroway=gate (at airports), amenity=taxi etc. These original tags are still more commonly used and were not invalidated by the new tag, and should be kept in order to ensure compatibility with legacy software. Additionally, at least some prefer more specific tags rather than single tag supposed to cover objects as diverse as railway platforms, bus stops and airport infrastructure.

and it appears that you are correct. public_transport=platform should be able to work without highway=bus_stop. I'll work on that issue after OpenStreetMap-NG as I don't want to lose focus now :slightly_smiling_face:. Thank you for pointing out the issue!