Skip to content
HALOWERK

Mobility, Warnings and Local Data

gtfs frequency onboard leg

Transit stop times return boarding, alighting and ride duration for one exact trip. Use it when an agent needs planning a same-vehicle journey on a trip with repeated stop names.

POST https://ort.halowerk.com/v1/gtfs-frequency-onboard-leg

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
windowobjectYes
offsetsarrayYes
trip_numberintegerYes
board_atintegerYes
alight_atintegerYes
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
    },
    "offsets": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 86400
      },
      "maxItems": 100,
      "minItems": 2
    },
    "trip_number": {
      "type": "integer",
      "minimum": 1,
      "maximum": 172800
    },
    "board_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99
    },
    "alight_at": {
      "type": "integer",
      "minimum": 0,
      "maximum": 99
    }
  },
  "required": [
    "window",
    "offsets",
    "trip_number",
    "board_at",
    "alight_at"
  ],
  "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
  },
  "offsets": [
    0,
    2700
  ],
  "trip_number": 1,
  "board_at": 0,
  "alight_at": 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": {
        "board": {
          "type": "string"
        },
        "alight": {
          "type": "string"
        },
        "ride_secs": {
          "type": "integer"
        }
      },
      "required": [
        "board",
        "alight",
        "ride_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 โ†’