public-transport / transitous

Free and open public transport routing.
https://transitous.org
137 stars 42 forks source link

Integrate Swedish realtime feeds #125

Open vkrause opened 3 months ago

vkrause commented 3 months ago

See https://www.trafiklab.se/api/.

jbruechert commented 3 months ago

This looks a bit complicacted:

We could just add all of them and hope deduplication is fast enough

vkrause commented 3 months ago

Right, that's the only option I see as well, similar to the situation in DE.

1Maxnet1 commented 3 months ago

We could just add all of them and hope de-duplication is fast enough

Which kind of de-duplication is currently in place? Otherwise there are also existing tools to combine GTFS-RT feeds, which might be worth a look: https://github.com/mbta/concentrate

vkrause commented 3 months ago

Which kind of de-duplication is currently in place?

We don't have any Transitous-specific deduplication so far, only what's already in MOTIS.

felixguendling commented 1 month ago

We could just add all of them and hope deduplication is fast enough

With the latest release v0.12.5 it should be fast enough. At least before it was approx 50% of the import time, now it's gone from the profiler. So my hope would be that this approach would work on a larger scale (e.g. also in Germany).

Are there any blockers in MOTIS to try this? If I remember correctly, I read somewhere that Sweden uses the alternative method to identify trips via route_id, direction, etc. (maybe I'm wrong.. can't find it anymore) but I tried to check with the first feed from https://www.trafiklab.se/api/ and didn't get any unsupported_no_trip_id in the statistics.