Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs departure first opportunity per mode

Station mode availability returns the wait from window start to the first departure of each mode. Use it when an agent needs which modes become available first.

POST https://ort.halowerk.com/v1/gtfs-departure-first-opportunity-per-mode

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
querystringYes
datestringNo
timestringNo
minutesintegerNo
modestringNo
Show full input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "maxLength": 100,
      "minLength": 1
    },
    "date": {
      "type": "string",
      "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
    },
    "time": {
      "type": "string",
      "pattern": "^(?:[01]?[0-9]|2[0-3]):[0-5][0-9]$"
    },
    "minutes": {
      "type": "integer",
      "minimum": 1,
      "maximum": 60
    },
    "mode": {
      "type": "string",
      "maxLength": 32,
      "minLength": 1
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "query": "Köln Hbf",
  "date": "2026-11-17"
}

Result & documentation

Show published result schema
{
  "type": "object",
  "required": [
    "measured_at",
    "source",
    "data",
    "limitations"
  ],
  "properties": {
    "measured_at": {
      "type": "string"
    },
    "source": {
      "type": "object",
      "required": [
        "reference",
        "retrieved_at"
      ],
      "properties": {
        "reference": {
          "type": "string"
        },
        "retrieved_at": {
          "type": "string"
        }
      }
    },
    "data": {
      "type": "object",
      "properties": {
        "station": {
          "type": "string"
        },
        "modes": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "mode": {
                "type": "string"
              },
              "wait_seconds": {
                "type": "integer"
              }
            },
            "required": [
              "mode",
              "wait_seconds"
            ]
          }
        }
      },
      "required": [
        "station",
        "modes"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-11-20 UTC.

More endpoints in this hub

All endpoints in this hub →