Register time

This webhook will be called when one or more stops get registered time. The request from the webhook can look like this:

{
  "name": "registerTime",
  "sent": "2019-02-05T14:02:46.943Z",
  "data": [
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e019",
      "stopReference": "STOP-REFERENCE",
      "time": {
        "estimated": {
          "arrival": "2019-02-05T13:56:13.435Z",
          "departure": "2019-02-0513:59:34.348Z"
        },
        "actual": {
          "arrival": "2019-02-05T13:59:55.904Z",
          "departure": "2019-02-05T14:04:25.689Z"
        },
        "terminal": {
          "arrival": "2019-02-05T14:00:56.543Z",
          "departure": "2019-02-05T14:04:35.595Z"
        }
      }
    }
  ]
}
{
  "name": "registerTime",
  "sent": "2019-02-05T14:02:46.943Z",
  "data": [
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e019",
      "stopReference": "STOP-REFERENCE",
      "time": {
        "terminal": {
          "arrival": "2019-02-05T14:00:56.543Z"
        }
      }
    }
  ]
}
{
  "name": "registerTime",
  "sent": "2019-02-05T14:02:46.943Z",
  "data": [
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e019",
      "stopReference": "STOP-REFERENCE",
      "time": {
        "actual": {
          "departure": "2019-02-05T14:04:25.689Z"
        }
      }
    }
  ]
}
{
  "name": "registerTime",
  "sent": "2019-02-05T14:02:46.943Z",
  "data": [
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e019",
      "stopReference": "STOP-REFERENCE-1",
      "time": {
        "actual": {
          "departure": "2019-02-05T14:04:25.689Z"
        }
      }
    },
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e026",
      "stopReference": "STOP-REFERENCE-2",
      "time": {
        "estimated": {
          "arrival": "2019-02-05T14:34:65.254Z"
        }
      }
    },
    {
      "routeId": "5b4894a3e215c79fffa4e01a",
      "routeReference": "ROUTE-REFERENCE",
      "stopId": "5b4894a3e215c79fffa4e034",
      "stopReference": "STOP-REFERENCE-3",
      "time": {
        "estimated": {
          "arrival": "2019-02-05T14:42:55.376Z"
        }
      }
    }
  ]
}
📘

Note that all information might not be visible because it is only if the information have been changed that is visible in the output. So ifterminal have not been changed, terminal will not be in the data output.

🚧

Please note that the "Full example" above, is more theoretical than practical, showing all potential data values instead of what you are likely to receive.

The data contains:

Key

Description

routeId

The id of the route

stopId

The id of the stop

time

An object containing all the information about the time.

The time can contain:

estimated

What have been estimated by the system

actual

What actual time the driver have registered

terminal

What the terminal have registered