Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs frequency shared stop spacing

Transit combined timetable measures unique departure gaps for two exact boarding streams at one supplied stop. Use it when an agent needs checking the actual spacing of interleaved departures.

POST https://ort.halowerk.com/v1/gtfs-frequency-shared-stop-spacing

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
windowsarrayYes
offsetsarrayYes
Show full input schema
{
  "type": "object",
  "properties": {
    "windows": {
      "type": "array",
      "items": {
        "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
      },
      "maxItems": 2,
      "minItems": 2
    },
    "offsets": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 86400
      },
      "maxItems": 2,
      "minItems": 2
    }
  },
  "required": [
    "windows",
    "offsets"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "windows": [
    {
      "start_time": "07:45:00",
      "end_time": "19:15:01",
      "headway_secs": 300,
      "exact_times": 1
    },
    {
      "start_time": "07:00:00",
      "end_time": "18:00:01",
      "headway_secs": 300,
      "exact_times": 1
    }
  ],
  "offsets": [
    2700,
    0
  ]
}

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": {
        "unique_departures": {
          "type": "integer"
        },
        "simultaneous": {
          "type": "integer"
        },
        "largest_gap_secs": {
          "type": "integer"
        },
        "mean_random_wait_secs": {
          "type": "number"
        }
      },
      "required": [
        "unique_departures",
        "simultaneous",
        "largest_gap_secs",
        "mean_random_wait_secs"
      ]
    },
    "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 โ†’