https://github.com/pgrimaud/lametric-ratp
RATP Schedules for LaMetric
https://github.com/pgrimaud/lametric-ratp
lametric lametric-app ratp
Last synced: about 2 months ago
JSON representation
RATP Schedules for LaMetric
- Host: GitHub
- URL: https://github.com/pgrimaud/lametric-ratp
- Owner: pgrimaud
- Created: 2016-02-24T22:21:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T21:17:22.000Z (about 2 years ago)
- Last Synced: 2024-05-01T23:16:14.032Z (about 1 year ago)
- Topics: lametric, lametric-app, ratp
- Language: PHP
- Homepage:
- Size: 473 KB
- Stars: 8
- Watchers: 4
- Forks: 1
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
Awesome Lists containing this project
README
# RATP Schedules for LaMetric

# 2017-06-16 - Important update
### Parameters data have changed, due to the takedown of the old middleware. You must reconfigure your app and follow the instructions bellow. Sorry for inconvenience.
# How it works ?
First, launch your LaMetric app, install our app "RATP Schedules" and choose a line in the drop down menu.

Then, find the ID Destination and ID Station from the [API RATP](https://github.com/pgrimaud/horaires-ratp-api) or see our example below.
### Example :
If you want to get the schedules of the next subway* to **Balard** at the station **Daumesnil**, on the line 8.
Open https://api-ratp.pierre-grimaud.fr/v3/destinations/metros/8, you will get :
```
{
"result": {
"destinations": [
{
"name": "Pointe du Lac",
"way": "A"
},
{
"name": "Balard",
"way": "R"
}
]
},
"_metadata": {
"call": "GET /destinations/metros/8",
"date": "2017-06-16T01:24:58+02:00",
"version": 3
}
}
```- Find the ```way``` of the desired destination (R for **Balard**) and set it on the configuration panel.
- Set the name of the station (daumesnil for **Daumesnil**).
- Wait a few seconds and you will see :

*It also works with rer or tramway
## Feedback
If you need help, [create an issue](https://github.com/pgrimaud/lametric-ratp/issues) or contact us on [Twitter](http://twitter.com/pgrimaud_)