Skip to content

pgrimaud/ratp-api-rest

Repository files navigation

REST RATP API (v4)

SensioLabsInsight

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 git@github.com:pgrimaud/ratp-api-rest
cd ratp-api-rest
composer install

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.