grote / Transportr

Free Public Transport Assistant without Ads or Tracking
https://transportr.app
GNU General Public License v3.0
1.04k stars 188 forks source link

Add support for realtime API in Paris #402

Closed Phyks closed 6 years ago

Phyks commented 6 years ago

Hi,

RATP (public transport provider in Paris) is offering a realtime API. It's apparently not yet available in Navitia (as of one year ago), I'm not sure if this is something that could easily be plugged into Transportr? Would be really awesome to get realtime travel times!

Thanks

grote commented 6 years ago

First it needs to be available in Navitia, then it needs to be added to PTE and then it can be added to Transportr. If you want to work on this, I can give you some pointers on how to achieve this.

Phyks commented 6 years ago

Ok… If it has to be in Navitia, then it is probably not possible at the moment. Navitia has the offline data for Paris, but no realtime data.

From https://groups.google.com/forum/#!searchin/navitia/ratp%7Csort:date/navitia/MeCz7W__ZGE/3HnGcWs1CwAJ

2) Tu n'obtiens pas de data_freshness=realtime simplement parce qu'il n'y a pas de fournisseur de données temps réel branché dans fr-idf

(there is only base_schedule available, no realtime data provider is available for Paris region in Navitia)

and from https://groups.google.com/forum/#!searchin/navitia/ratp%7Csort:date/navitia/jp58u_4szIo/iqUHI-AbFgAJ

Pour l'instant, il n'est pas prévu à court et moyen terme de l'intégrer à la roadmap. which translates roughly to For now, there is no plan to integrate the realtime feature (for Paris) in a short to mid term.

I was thinking that Transportr could maybe call the API by itself, without relying on Navitia?

grote commented 6 years ago

What is possible is to use the SNCF API via Navitia. This already has real-time information. I don't know how much of that for Paris though.

Phyks commented 6 years ago

There are two public transport systems in Paris: SNCF and RATP. SNCF already has real-time information in Navitia but only covers "regional" transit (as in the large metropolitan area, regional trains). RATP on the contrary recently opened up their real-time API, but this is not yet available in Navitia apparently. RATP has the data for the main city area (subway, buses etc). :/

grote commented 6 years ago

If there's already SNCF real-time information in Navitia, this can be used to add support for it to PTE (in AbstractNavitiaProvider). When other real-time sources become available, these should then appear automagically in Transportr. But the initial work needs to be done first.

grote commented 6 years ago

This ticket is quite old and nobody has worked on it until now. I personally don't have time to work on it in the foreseeable future. Since there are many other open tickets, let's close this one until someone is interested in the implementation.