Skip to content
HALOWERK

Geodata Tools

transit fare pass choice

Transit pass comparison chooses the lower cost of individual fares and one period pass starting at the first boarding. Use it when an agent needs comparing a pass quote with pay-as-you-go.

POST https://geo.halowerk.com/v1/transit-fare-pass-choice

Inputs

Fields of the published input schema
FieldTypeRequiredDescription
boardingsarrayYes
fareintegerYes
windowintegerYes
transfersintegerYes
pass_priceintegerYes
pass_minutesintegerYes
Show full input schema
{
  "type": "object",
  "properties": {
    "boardings": {
      "type": "array",
      "items": {
        "type": "integer",
        "minimum": 0,
        "maximum": 44640
      },
      "maxItems": 80,
      "minItems": 1
    },
    "fare": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "window": {
      "type": "integer",
      "minimum": 0,
      "maximum": 10080
    },
    "transfers": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100
    },
    "pass_price": {
      "type": "integer",
      "minimum": 0,
      "maximum": 100000
    },
    "pass_minutes": {
      "type": "integer",
      "minimum": 0,
      "maximum": 44640
    }
  },
  "required": [
    "boardings",
    "fare",
    "window",
    "transfers",
    "pass_price",
    "pass_minutes"
  ],
  "additionalProperties": false
}

Open original schema

Published input example

{
  "boardings": [
    0,
    38,
    92,
    164
  ],
  "fare": 225,
  "window": 120,
  "transfers": 2,
  "pass_price": 500,
  "pass_minutes": 1440
}

Result & documentation

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 โ†’