openstreetmap-ng icon indicating copy to clipboard operation
openstreetmap-ng copied to clipboard

Reconsider public transportation mapping

Open goteusz-maszyk opened this issue 6 months ago • 1 comments

Part of #44

I think everyone who has tried mapping public transport in OSM knows that. The current solution CANNOT be continued. Even with relatify, this is very unreliable and time consuming. Today, most agencies are providing their GTFS, which can be utilised for usage for everyone.

The best solution I've come up so far is to rip down all lines (not stops!) that are GTFS-able, which only leaves us some local "village buses" not covered. Those lines can still be mapped using current solution. This would obviously require us to create another way to get data, right?

My suggestion is to make:

Public transportation API Available at /api/0.7/transit/. Endpoints: /stop/<nodeid> - returns information about all lines going through specified stop and their departure schedule. /line/<line_id> - the line ID would be given in stop information, the endpoint returns lines stop list and shape. But how would we get this information? Well.. there is a service https://mobilitydatabase.org/. They provide official GTFS feeds from around the world.

With this, OSM will also be able to have realtime transit data using GTFS realtime.

I leave this issue as a place for discussion, my idea is definitely not perfect and requires some improvements.

goteusz-maszyk avatar Aug 06 '24 09:08 goteusz-maszyk