ratp-api-rest
ratp-api-rest copied to clipboard
This project turnkey is distributed as a middleware to expose RATP realtime data as REST resources
REST RATP API (v4)
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
Demo is available here : https://api-ratp.pierre-grimaud.fr/v4/
Requirements
- Access to the official RATP API (see here)
- PHP >= 8.0
- Redis server (for cache)
Installation
First :
git clone [email protected]: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.
TODO
- Add Opendata SNCF data
Feedback or questions
You can create an issue if needed or contact me on Twitter.
Contributing
Pull requests are appreciated. Everyone is welcome and even encouraged to contribute with their own improvements.
Copyrights
This project is not affiliated with or endorsed by the RATP.
License
Licensed under the terms of the MIT License.