Ceci est une ancienne révision du document !


Exemple de réponse d'un item (une circulation)

Voici un des items obtenus. Sa lecture vous sera assez simple, quelques points cependant.

{
    "calendars": [

Liste des périodes de validité de la circulation donnée

       {
            "active_periods": [
               {
                    "begin": "20170828",
                    "end": "20170902"
                }
            ],
            "week_pattern": {
                "friday": true,
                "monday": true
                "thursday": true,
                "tuesday": true,
                "wednesday": true,
            }
        }
    ],
    "codes": [],
    "disruptions": [],
    "id": "vehicle_journey:OCE:SN855807F01001",
    "journey_pattern": {
        "id": "journey_pattern:2",
        "name": "journey_pattern:2"
    },
    "name": "855807",
    "stop_times": [
       {
            "arrival_time": "060000"
            "departure_time": "060000",
            "headsign": "855807",
            "stop_point": {
                "coord": {
                    "lat": "48.103533",
                    "lon": "-1.672321"
                },
                "equipments": [],
                "id": "stop_point:OCE:SP:TrainTER-87471003"
                "label": "Rennes (Rennes)",
                "links": [],
                "name": "Rennes",
            },
        },
       {...},
       {...},
       {...},
       {...},
       {...},
       {...},
       {...},
       {...}
    ],
    "trip": {
        "id": "OCE:SN855807F01001",
        "name": "855807"
    }
    "validity_pattern": {
        "beginning_date": "20170703",
        "days": "000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001111100000000000000000000000000000000000000000000000000000000"
    },
}