Skip to content

RATP API made simple using REST Webservices. Realtime schedules for Paris metro network (RATP - metro, bus, tram, rer)

License

Notifications You must be signed in to change notification settings

ferreirix/restratp

Repository files navigation

RATP API made simple using REST Webservices.

Build status

How to get the realtime trips?

  1. Get the lines
    1. Sample request for metros : http://restratpws.azurewebsites.net/api/lines/metro
    2. 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"
        },
        ...
      ]
    
  2. Get the directions
    1. Sample request for M1 : http://restratpws.azurewebsites.net/api/directions/100110001
    2. Sample response
    [
      {
        "way": "A",
        "name": "La Défense"
      },
      {
        "way": "R",
        "name": "Château de Vincennes"
      }
    ]
    
  3. Get the stations
    1. Sample request for M1 : http://restratpws.azurewebsites.net/api/directions/100110001
    2. Sample response
    [
      {
        "id": "114",
        "name": "Argentine"
      },
      {
        "id": "133",
        "name": "Bastille"
      },
      {
        "id": "137",
        "name": "Bérault"
      },
      {
        "id": "190",
        "name": "Champs-Elysées - Clémenceau"
      },
      ...
    ]
    
  4. Get the realtime trips
    1. Sample request for M1 from Argentine towards La Défense : http://restratpws.azurewebsites.net/api/missions/100110001/from/114/way/a
    2. Sample response
    [
      "1 mn",
      "3 mn",
      "7 mn",
      "10 mn"
    ]
    

Extras

About

RATP API made simple using REST Webservices. Realtime schedules for Paris metro network (RATP - metro, bus, tram, rer)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages