Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs frequency window conflict

GTFS frequency window comparison measures overlap or uncovered time between two candidate records for the same trip pattern. Use it when an agent needs checking boundaries when joining service windows.

POST https://ort.halowerk.com/v1/gtfs-frequency-window-conflict

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
windowsarrayYes
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
    }
  },
  "required": [
    "windows"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "windows": [
    {
      "start_time": "07:00:00",
      "end_time": "08:00:01",
      "headway_secs": 600,
      "exact_times": 1
    },
    {
      "start_time": "08:00:00",
      "end_time": "19:00: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": {
        "overlap_secs": {
          "type": "integer"
        },
        "gap_secs": {
          "type": "integer"
        },
        "touch": {
          "type": "boolean"
        },
        "earlier_start": {
          "type": "string"
        }
      },
      "required": [
        "overlap_secs",
        "gap_secs",
        "touch",
        "earlier_start"
      ]
    },
    "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 โ†’