Automated incremental Bus Stop (GTFS) updates

To summarize the main objection raised by some of the mappers:

  • The MOT route data cannot be relied upon, so an import would include the stops a bus goes through, but not the exact route or the street names.

  • The route=bus relation mandates routes, so an import must invent a new relation and not use route=bus.

  • The import needlessly bloats the map and complicates the import/conflict resolution code without adding much practical value to OSM, “because importing the bus stop data without the roads and routes / because importing the data in any form” isn’t of much use to OSM.

Of course! The exact address can already be found at the page, and if the deletion change is ever added it would also link to the address.

https://forum.openstreetmap.org/viewtopic.php?pid=704210#p704210

Pinging this old issue. Suggestions appreciated.

Hi SafwatHalaby, are you going to run your great bot? I really miss bus-stop updates last couple of months…

Hello! Sorry for the infrequent updates. I had been unable to perform the runs weekly in the past few months, but starting next week the regular updates should return.

With that said, I would like to re-write the code ASAP. (It will likely be re-written in Java). The re-write should make it cleaner, allow full automation, and make it locally stateless. I aim for minimal dependencies (preferably only the standard Java library) so that it can run for a very long time without maintenance.

Script has been executed.

Changesets:
https://www.openstreetmap.org/changeset/91500256
https://www.openstreetmap.org/changeset/91502029

Thanks!

Possibly unrelated but how do I get osm(and) to show transit routes in directions?

I get "Unfortunately, OsmAnd could not find a route suitable for your settings

Try changing the settings."

Is importing the GTFS data from MOT abandoned? Is the data still too bad to be used? Can I help as a developer?

1 Like

hello @SafwatHalaby and everybody else.
first, i’d like to thank for putting out country on the map, in the spirit of Tal.
since the use of the bus stops is the busses that would stop there,
would it be possible to go further and load the bus routes (with the meaning in osm),
from the same gtfs repository?

with best regards,
alex

the bus stations are in osm, but the buse routes( ~lines) not yet.

It looks like the periodic import of bus stops update in Israel is no longer performed.
As far as I can see, the last update import was in Changeset: 93373309 | OpenStreetMap, dated 2020-11-01.

Hello, I am reviving the bus stop import, rewritten from scratch in Python. See Import: Bus stops from GTFS and NeatNit/gtfs2osm-il: Import GTFS data into OpenStreetMap in Israel - Codeberg.org. I want to do a test import in a limited bounding box within the next few days, see the linked topic.

In the future I will look into importing bus routes, not just the stop names and locations. But that can only happen once the bus stops are up to date, so I’m focusing on that first.

Please direct all questions to the new topic: Import: Bus stops from GTFS

Hello.

I’ve been absent for a long time, but I’m alive.

It seems lots have changed! I need to catch up.

@NeatNit thank you for the script revival initiative!

1 Like

Welcome back! Please check out gtfs2osm :smiley:

1 Like

I’m also very active nowadays in automating PTNA: Public Transport Network Analysis - OpenStreetMap Wiki
forum topic: PTNA: news for Public Transport Network Analysis

It’s a platform for doing quality control/analysis on routes that have already been mapped in OSM. Doesn’t automatically import anything but makes it easy to verify that what you’ve mapped is mapped correctly according to PTv2 tagging schema. Soon will be ready to share with the Israel community, right now there’s a few caveats that I want to iron out.

1 Like

This is slightly unrelated to OSM, but I’m throwing it out there in case it interests anyone to do this.

I had considered rewriting the script, and while I’m at it, publish the processed data both to OSM and transportr via the same script. This project never left the planning phase. I didn’t even investigate how transportr consumes data. I don’t know if some pre-processing is needed or if it can consume the MOT GTFS data as-is. But essentially one needs to create an “IsraelProvider” in the public-transport-enabler library.

Interesting idea! It would take a lot of work though. From their Contribute page:

You can check whether the system you want to add is based on HAFAS or EFA. Support for these systems is already in the public transport enabler, so it is probably easy to add your area.

Those links aren’t very helpful but I can tell you right now, Israel’s real-time public transit system uses SIRI-SM, which it doesn’t look like is implemented yet in the repository you linked. I never knew there were so many competing standards in this field! At least for static information, GTFS seems to be pretty standard.

Edit: check out this old issue too: Add Israel Provider · Issue #201 · schildbach/public-transport-enabler · GitHub

GTFS was supported when I had this in mind. Glancing at their Github, this seems to be some recent problem related to Navitia.

References:

For the record:

My script has been discontinued. Please see the newer thread for the new script. https://community.openstreetmap.org/t/import-bus-stops-from-gtfs

This thread shouldn’t be used any longer.

For historic info about the script, see User:SafwatHalaby/scripts/gtfs - OpenStreetMap Wiki