pgrimaud / ratp-api-rest

This project turnkey is distributed as a middleware to expose RATP realtime data as REST resources
MIT License
85 stars 15 forks source link

Bus TVM line code #8

Closed FlyingYeti closed 6 years ago

FlyingYeti commented 6 years ago

Requesting [https://api-ratp.pierre-grimaud.fr/v3/lines/bus?_format=json]() gives {"code": "vm", "name": "Bus RATP Tvm", "directions": "Saint-Maur - Creteil RER / la Croix de Berny-RER", "id": "194216"} but the code is wrong (should be "code": "tvm") as [https://api-ratp.pierre-grimaud.fr/v3/stations/bus/vm?_format=json]() gives "code": 400, "message": "Ambiguous Line" but [https://api-ratp.pierre-grimaud.fr/v3/stations/bus/tvm?_format=json]() gives the correct stations list

pgrimaud commented 6 years ago

Hi @FlyingYeti,

You can try this resource to retrieve stations of the bus vm: https://api-ratp.pierre-grimaud.fr/v3/stations/bus/vm?id=194216