This project turnkey is distributed as a middleware to expose RATP realtime data as REST resources
Switch branches/tags
Nothing to show
Clone or download
Latest commit 5b23dbc Nov 27, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app Add analytics tag Aug 3, 2018
bin Improve cache cleaning Aug 3, 2018
src Update dependencies Oct 1, 2018
var Update dependencies Aug 6, 2018
web remove useless stuff Dec 22, 2017
.gitignore remove useless stuff Dec 22, 2017
LICENSE Initial commit Feb 13, 2017
README-FR.md Update readme with known bugs Mar 29, 2018
README.md Update readme with known bugs Mar 29, 2018
composer.json Update Symfony version and dependencies Mar 11, 2018
composer.lock Update dependencies Nov 27, 2018

README.md

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.