- Get the lines
- Sample request for metros : http://restratpws.azurewebsites.net/api/lines/metro
- Sample response
[ { "id": "100110001", "name": "La Défense / Château de Vincennes", "shortName": "M1", "image": "m1.gif" }, { "id": "100110002", "name": "Porte Dauphine / Nation", "shortName": "M2", "image": "m2.gif" }, { "id": "100110003", "name": "Pont de Levallois Bécon / Gallieni", "shortName": "M3", "image": "m3.gif" }, ... ]
- Get the directions
- Sample request for M1 : http://restratpws.azurewebsites.net/api/directions/100110001
- Sample response
[ { "way": "A", "name": "La Défense" }, { "way": "R", "name": "Château de Vincennes" } ]
- Get the stations
- Sample request for M1 : http://restratpws.azurewebsites.net/api/directions/100110001
- Sample response
[ { "id": "114", "name": "Argentine" }, { "id": "133", "name": "Bastille" }, { "id": "137", "name": "Bérault" }, { "id": "190", "name": "Champs-Elysées - Clémenceau" }, ... ]
- Get the realtime trips
- Sample request for M1 from Argentine towards La Défense : http://restratpws.azurewebsites.net/api/missions/100110001/from/114/way/a
- Sample response
[ "1 mn", "3 mn", "7 mn", "10 mn" ]
-
Get the lines' and networks' images
-
For the networks' images use :
p_met.gif p_bus.gif p_rer.gif p_tram.gif
-
For the line's image use 'image' value received from api/lines/{networkId}
-
Samples :
-
-
Get the color of a line in rgb format
-
Sample request: http://restratpws.azurewebsites.net/api/lines/metro/line/100110001/color
-
Sample response : rgb(255,207,0)
-