Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs frequency interval load

GTFS interval departure count returns exact scheduled starts inside a supplied half-open time interval. Use it when an agent needs counting trips for a reporting period that cuts through a service window.

POST https://ort.halowerk.com/v1/gtfs-frequency-interval-load

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
windowobjectYes
fromstringYes
untilstringYes
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
    },
    "from": {
      "type": "string"
    },
    "until": {
      "type": "string"
    }
  },
  "required": [
    "window",
    "from",
    "until"
  ],
  "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
  },
  "from": "08:00:00",
  "until": "09:00:00"
}

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": {
        "departures": {
          "type": "integer"
        },
        "first": {
          "type": [
            "string",
            "null"
          ]
        },
        "last": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "departures",
        "first",
        "last"
      ]
    },
    "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 โ†’