Skip to content

Latest commit

 

History

History
63 lines (37 loc) · 2.19 KB

README.md

File metadata and controls

63 lines (37 loc) · 2.19 KB

REST RATP API

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.

Translations

This README file is also available in french.

Requirements

  • Access to the RATP API (see here)
  • PHP >= 5.6
  • Package php-soap (ext-soap extension)
  • Redis server (for cache)

Installation

First :

git clone git@github.com:pgrimaud/ratp-api-rest
cd ratp-api-rest
composer install --no-dev

Then configure your favorite webserver with web/app.php as entrypoint. More informations here

Recommendation for production : remove app_dev.php file from the web folder.

TODO

  • Enable / disable cache usage

Known bugs

  • 2017-02-27 : Tramways schedules don't work. I contacted RATP about it and I still waiting for a reply and/or a fix.
  • 2017-11-27 : Realtime schedules for RER C, D et E are not available.
  • 2018-03-29 : Realtime schedules for buses which are not equiped with SIEL (realtime bus localization) are not available.

Feedback or questions

You can create an issue if needed or contact me on Twitter.

Demo

Demo is available here : https://api-ratp.pierre-grimaud.fr/v3/documentation

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.

Licence

Licensed under the terms of the MIT License.