Zügle · Schema
CommuteCostEstimate
A monthly public-transit cost estimate between two places.
CompanyReal EstateFinanceRelocationSwiss
Properties
| Name | Type | Description |
|---|---|---|
| from | object | The starting point — query string, resolved name, ambiguity flag, normalized station key, fare-network membership, and Verbund membership. |
| to | object | The destination point — same structure as `from`. |
| basis | stringnull | The pricing model used — combo (curated national point-to-point), zone (regional fare-zone network), corridor (zone-based override for common routes), or national (distance-based fallback). Null on a |
| approximate | boolean | True for `corridor` and `national` estimates — an approximation rather than an exact rate. A consumer must surface this; an approximation must never render as a fact. |
| method | stringnull | The fare matrix's own self-describing label, passed through verbatim (e.g., "Z-Pass Corridor Zones"). Null on a partial answer. |
| note | stringnull | A plain-English caveat about the estimate — e.g., when both ends are outside modelled networks and the distance lookup is unavailable. Null when no caveat applies. |
| sbbMonthly | numbernull | Monthly public-transit season-ticket estimate in CHF. Null means unknown and must never be rendered as 0. |
| carMonthly | numbernull | Monthly car fuel+depreciation estimate in CHF, computed only when coordinates were resolved. Null when coordinates are not available. |
| nationalMonthly | numbernull | A reference figure showing the national distance-based tariff (set only alongside a curated combo fare). Never the headline estimate — shown for comparison only. |
| zones | numbernull | The number of zones crossed or traversed, depending on the basis. Meaning varies per regime — use `zonesMeaning` for the interpretation. |
| zonesMeaning | stringnull | Plain-English explanation of what `zones` means in this estimate (e.g., "Tariff zones crossed, including both endpoints"). Null when `basis` is not zone-based. |
| trackedKm | numbernull | Distance in kilometres when computed via the national fallback. Null when using a fare-zone network or a curated combo fare. |
| crossBorder | boolean | True when the journey crosses a cantonal or national boundary. |
| coordsUsed | boolean | True when the estimate used resolved coordinates (the full national fallback with distance, or a fare-zone/combo estimate augmented with a stored coordinate for the car figure). False when no coordina |
| coordsSource | stringnull | Where the coordinates behind carMonthly/the national distance came from. "stored" — both ends had a coordinate in data/municipalities.json and no network fetch was made. "stop-register" — both ends re |
| kmSource | stringnull | Where `trackedKm` came from, on the national regime only. "tariff" — SBB's own official tariff distance between two known service points (transport_tariff_distances). "estimated" — haversine straight- |
| singleTicket2nd | numbernull | A single-trip adult 2nd-class ticket price in CHF, from the SBB tariff-distance table — reference only, never a monthly figure, and never fed into sbbMonthly or carMonthly. Null unless kmSource is "ta |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/zuegle-com/json-schema/zuegle-com-commute-cost-estimate-schema.json",
"title": "CommuteCostEstimate",
"description": "A monthly public-transit cost estimate between two places.",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/zuegle-com-openapi.yaml#/components/schemas/CommuteCostEstimate",
"type": "object",
"required": [
"from",
"to",
"basis",
"approximate",
"method",
"note",
"sbbMonthly",
"carMonthly",
"nationalMonthly",
"zones",
"zonesMeaning",
"trackedKm",
"crossBorder",
"coordsUsed",
"coordsSource",
"kmSource",
"singleTicket2nd"
],
"properties": {
"from": {
"type": "object",
"description": "The starting point — query string, resolved name, ambiguity flag, normalized station key, fare-network membership, and Verbund membership.",
"required": [
"query",
"resolved",
"ambiguous",
"stationKey",
"network",
"zoneId",
"verbunde"
],
"properties": {
"query": {
"type": "string",
"description": "The original query string as provided."
},
"resolved": {
"type": "string",
"description": "The place name the query resolved to (e.g.",
"ZIP→Gemeinde translation).": null
},
"ambiguous": {
"type": "boolean",
"description": "True when the query matched multiple candidates."
},
"stationKey": {
"type": "string",
"description": "The normalised station/place key used for fare lookups."
},
"network": {
"type": [
"string",
"null"
],
"description": "The fare network this place belongs to (e.g.",
"ZVV": null,
"OSTWIND)": null,
"or null if outside all modelled networks.": null
},
"zoneId": {
"type": [
"number",
"null"
],
"description": "The zone number within the network",
"or null if not in a modelled network.": null
},
"verbunde": {
"type": "array",
"description": "Every Verkehrsverbund (regional fare network) this place's municipality belongs to — offline, from the municipality register. Empty when the place could not be pinned to exactly one municipality.",
"items": {
"type": "object",
"required": [
"code",
"name",
"modelled"
],
"properties": {
"code": {
"type": "string",
"description": "SBB's own numeric partner code for the Verbund, as a string, e.g. \"490\"."
},
"name": {
"type": "string",
"description": "The Verbund's short name, as SBB itself publishes it (e.g. \"ZVV\", not \"Zürcher Verkehrsverbund\")."
},
"modelled": {
"type": "boolean",
"description": "Whether this Verbund is one of the priced fare networks in this matrix",
"as opposed to merely known to exist.": null
}
}
}
}
}
},
"to": {
"type": "object",
"description": "The destination point — same structure as `from`.",
"required": [
"query",
"resolved",
"ambiguous",
"stationKey",
"network",
"zoneId",
"verbunde"
],
"properties": {
"query": {
"type": "string"
},
"resolved": {
"type": "string"
},
"ambiguous": {
"type": "boolean"
},
"stationKey": {
"type": "string"
},
"network": {
"type": [
"string",
"null"
]
},
"zoneId": {
"type": [
"number",
"null"
]
},
"verbunde": {
"type": "array",
"items": {
"type": "object",
"required": [
"code",
"name",
"modelled"
],
"properties": {
"code": {
"type": "string"
},
"name": {
"type": "string"
},
"modelled": {
"type": "boolean"
}
}
}
}
}
},
"basis": {
"type": [
"string",
"null"
],
"description": "The pricing model used — combo (curated national point-to-point), zone (regional fare-zone network), corridor (zone-based override for common routes), or national (distance-based fallback). Null on a partial answer when geocoding failed.",
"enum": [
"combo",
"zone",
"corridor",
"national",
null
]
},
"approximate": {
"type": "boolean",
"description": "True for `corridor` and `national` estimates — an approximation rather than an exact rate. A consumer must surface this; an approximation must never render as a fact."
},
"method": {
"type": [
"string",
"null"
],
"description": "The fare matrix's own self-describing label, passed through verbatim (e.g., \"Z-Pass Corridor Zones\"). Null on a partial answer."
},
"note": {
"type": [
"string",
"null"
],
"description": "A plain-English caveat about the estimate — e.g., when both ends are outside modelled networks and the distance lookup is unavailable. Null when no caveat applies."
},
"sbbMonthly": {
"type": [
"number",
"null"
],
"description": "Monthly public-transit season-ticket estimate in CHF. Null means unknown and must never be rendered as 0."
},
"carMonthly": {
"type": [
"number",
"null"
],
"description": "Monthly car fuel+depreciation estimate in CHF, computed only when coordinates were resolved. Null when coordinates are not available."
},
"nationalMonthly": {
"type": [
"number",
"null"
],
"description": "A reference figure showing the national distance-based tariff (set only alongside a curated combo fare). Never the headline estimate — shown for comparison only."
},
"zones": {
"type": [
"number",
"null"
],
"description": "The number of zones crossed or traversed, depending on the basis. Meaning varies per regime — use `zonesMeaning` for the interpretation."
},
"zonesMeaning": {
"type": [
"string",
"null"
],
"description": "Plain-English explanation of what `zones` means in this estimate (e.g., \"Tariff zones crossed, including both endpoints\"). Null when `basis` is not zone-based."
},
"trackedKm": {
"type": [
"number",
"null"
],
"description": "Distance in kilometres when computed via the national fallback. Null when using a fare-zone network or a curated combo fare."
},
"crossBorder": {
"type": "boolean",
"description": "True when the journey crosses a cantonal or national boundary."
},
"coordsUsed": {
"type": "boolean",
"description": "True when the estimate used resolved coordinates (the full national fallback with distance, or a fare-zone/combo estimate augmented with a stored coordinate for the car figure). False when no coordinates were available at all."
},
"coordsSource": {
"type": [
"string",
"null"
],
"enum": [
"stored",
"stop-register",
"geocoded",
"mixed",
null
],
"description": "Where the coordinates behind carMonthly/the national distance came from. \"stored\" — both ends had a coordinate in data/municipalities.json and no network fetch was made. \"stop-register\" — both ends resolved their coordinate from the SBB service-point register (migration 013) rather than the municipality file or a live geocode. \"geocoded\" — both ends were resolved live. \"mixed\" — the two ends used different sources. null — no coordinates were available on either end (fare-zone/combo pricing with no stored coordinate, or a failed national lookup)."
},
"kmSource": {
"type": [
"string",
"null"
],
"enum": [
"tariff",
"estimated",
null
],
"description": "Where `trackedKm` came from, on the national regime only. \"tariff\" — SBB's own official tariff distance between two known service points (transport_tariff_distances). \"estimated\" — haversine straight-line distance × a track-detour coefficient. null outside the national regime."
},
"singleTicket2nd": {
"type": [
"number",
"null"
],
"description": "A single-trip adult 2nd-class ticket price in CHF, from the SBB tariff-distance table — reference only, never a monthly figure, and never fed into sbbMonthly or carMonthly. Null unless kmSource is \"tariff\"."
}
}
}
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zuegle-com-commute-cost-estimate"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.