Slide 51
Slide 51 text
51
GTFSリアルタイムデータのイメージ
VehiclePosition(車両位置)
{
"header": {
"gtfsRealtimeVersion": "2.0",
"incrementality": "FULL_DATASET",
"timestamp": "1696577582"
},
"entity": [
{
"id": "vehicle_128501_6526_20231001",
"vehicle": {
"trip": {
"tripId": "128501_6526_20231001",
"startTime": "16:20:00",
"startDate": "20231006",
"routeId": "2_2030_1_20231001"
},
"position": {
"latitude": 32.798667907714844,
"longitude": 130.718994140625,
"speed": 0
},
"currentStopSequence": 6,
"timestamp": "1696577570",
"stopId": "100176_2",
"vehicle": {
"id": "254",
"label": "1509"
}
}
},
{
"id": "vehicle_128501_6540_20231001",
…
TripUpdate(通過時刻)
{
"header": {
"gtfsRealtimeVersion": "2.0",
"incrementality": "FULL_DATASET",
"timestamp": "1696577776"
},
"entity": [
{
"id": "tripUpdate_11_5_20231001",
"tripUpdate": {
"trip": {
"tripId": "11_5_20231001",
"startTime": "15:30:00",
"startDate": "20231006",
"routeId": "1_1313_2_20231001"
},
"stopTimeUpdate": [
{
"stopSequence": 1,
"arrival": {
"delay": 8,
"time": "1696573808",
"uncertainty": 0
},
"departure": {
"delay": 8,
"time": "1696573808",
"uncertainty": 0
},
"stopId": "100002_1"
},
{
"stopSequence": 2,
…
Protocol Buffersで配信
JSONで表示するツールを公開中
https://traffic-brain.github.io/gtfs-rt2json/