Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs departure route concentration

Station route concentration calculates the probability that two distinct scheduled departures chosen at random use the same route. Use it when an agent needs route variety behind a departure count.

POST https://ort.halowerk.com/v1/gtfs-departure-route-concentration

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"
        },
        "departures": {
          "type": "integer"
        },
        "routes": {
          "type": "integer"
        },
        "same_route_probability": {
          "type": [
            "number",
            "null"
          ]
        }
      },
      "required": [
        "station",
        "departures",
        "routes",
        "same_route_probability"
      ]
    },
    "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 →