Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Trip Update Entity example (in pseudo json content)

Code Block
languagejson
{
  "id": "trip:281721",
  "trip_update": {
    "trip": {
      "trip_id": "281721",
      "route_id": "3001I",
      "start_time": "16:36:00"
    },
    "stop_time_update": [
      {
        "stop_sequence": 1,
        "departure": {
          "time": "1580135775"
        },
        "stop_id": "1020503"
      },
      {
        "stop_sequence": 2,
        "arrival": {
          "time": "1580136050"
        },
        "departure": {
          "time": "1580136050"
        },
        "stop_id": "1174501"
      },
      {
        "stop_sequence": 3,
        "arrival": {
          "time": "1580136234"
        },
        "stop_id": "1250501"
      }
    ]
  }
}

...

Vehicle Position Entity example (in pseudo json content)

Code Block
languagejson
{
  "id": "vehicle:943",
  "vehicle": {
    "trip": {
      "trip_id": "281721",
      "route_id": "3001I",
      "start_time": "16:36:00"
    },
    "position": {
      "latitude": 60.27628707885742,
      "longitude": 24.856653213500977,
      "bearing": 133
    },
    "vehicle": {
      "id": "943"
    }
  }
}

...