Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs frequency departure grid

GTFS frequency expansion returns the number, first and last of the nominal departure slots in a window. Use it when an agent needs sizing a timetable expansion before materializing trips.

POST https://ort.halowerk.com/v1/gtfs-frequency-departure-grid

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
windowobjectYes
Show full input schema
{
  "type": "object",
  "properties": {
    "window": {
      "type": "object",
      "properties": {
        "start_time": {
          "type": "string"
        },
        "end_time": {
          "type": "string"
        },
        "headway_secs": {
          "type": "integer",
          "minimum": 1,
          "maximum": 86400
        },
        "exact_times": {
          "type": "integer",
          "minimum": 0,
          "maximum": 1
        }
      },
      "required": [
        "start_time",
        "end_time",
        "headway_secs"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "window"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "window": {
    "start_time": "07:45:00",
    "end_time": "19:15:01",
    "headway_secs": 300,
    "exact_times": 1
  }
}

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": {
        "slots": {
          "type": "integer"
        },
        "first": {
          "type": "string"
        },
        "last": {
          "type": "string"
        },
        "scheduled": {
          "type": "boolean"
        }
      },
      "required": [
        "slots",
        "first",
        "last",
        "scheduled"
      ]
    },
    "limitations": {
      "type": "string"
    }
  }
}

Machine-readable documentation of this hub

Source of this page: the published HALOWERK catalog. Updated: 2026-12-05 UTC.

More endpoints in this hub

All endpoints in this hub โ†’