This project turnkey is distributed as a middleware to expose RATP data as REST resources. You can retrieve real time schedules for any given RER (train), Metro, Tramway, Bus or Noctilien stop in real time.
This project uses the package horaires-ratp-sdk which consume the official RATP API.
Old version 3 README is available here.
Official documentation on GitHub with dashboard example.
Demo is available here : https://api-ratp.pierre-grimaud.fr/v4/
- Access to the official RATP API (see here)
- PHP >= 7.2
- Redis server (for cache)
First :
git clone git@github.com:pgrimaud/ratp-api-rest
cd ratp-api-rest
composer install
- Then configure your favorite webserver (Apache or Nginx) : more informations here.
- Manage your
.env
file : more informations here.
- Add Opendata SNCF data (WIP)
You can create an issue if needed or contact me on Twitter.
Pull requests are appreciated. Everyone is welcome and even encouraged to contribute with their own improvements.
This project is not affiliated with or endorsed by the RATP.
Licensed under the terms of the MIT License.