Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds.
coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days).
Failure Modes:
401: Token is missing or invalid
403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it
422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range
An API key, sent as Authorization: Bearer <key>. Create one in the SWITCH Copilot under Settings → API keys (needs the API keys permission in your company), or with POST /auth/api-keys. The key is shown once, at creation.
Query Parameters
location
string
required
Transit network location, e.g. milan: one of the locations configured for this transit analysis in your company.
Minimum string length: 1
start_date
string<date>
required
First service day, ISO 8601 date, e.g. 2026-10-01.
end_date
string<date>
required
Last service day, included (ISO 8601 date, e.g. 2026-10-31). Not before start_date; at most 31 days in all.
lines
string[]
Line names to keep, case-insensitive, e.g. lines=1&lines=12; a name covers every route that carries it. Combined with route_ids as a union. Empty = all lines.
Maximum array length: 40
route_ids
string[]
Exact GTFS route_ids to keep, e.g. route_ids=R90. Combined with lines as a union. Empty = all lines.
Maximum array length: 40
direction
integer | null
GTFS direction_id to keep (0 or 1). Omit for both.
Required range: 0 <= x <= 1
hour_from
integer
default:0
First hour of the day to include (0-23, local time of the network), by scheduled time.
Required range: 0 <= x <= 23
hour_to
integer
default:23
Last hour of the day to include (0-23, local time), not before hour_from.
Required range: 0 <= x <= 23
day_type
enum<string>
default:all
Days to keep: all, weekday (Monday to Friday), saturday or sunday.
Available options:
all,
weekday,
saturday,
sunday
Response
Punctuality computed. Summary, breakdowns and coverage.
Stop-event punctuality.
partial_realtime_days caveat: some days in coverage.partial_days
have realtime data for only part of the timetable, so their figures cover
only the observed hours.
summary
PunctualitySummary · object
required
Show child attributes
by_hour
PunctualityGroup · object[]
required
Show child attributes
by_line
PunctualityGroup · object[]
required
Show child attributes
by_stop
PunctualityGroup · object[]
required
Show child attributes
by_day
PunctualityGroup · object[]
required
Show child attributes
coverage
Coverage · object
required
Requested days vs days with realtime data.
partial_days are days with data whose realtime feed covers only part
of the timetable (see _partial_days); they are also days with data.
The trip-share part of that rule is relative to the requested range: it
compares each day with the median day of the same request, so a range made
only of equally thin days is not flagged by it.
Show child attributes
definition
Definition · object
required
Show child attributes
caveats
string[]
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"SWITCH","description":"SWITCH API reference and guides: forecasts, fleet operations, routing, analytics, and Myles in your AI assistant.","colors":{"primary":"#131110","light":"#FAFAF4","dark":"#131110"},"logo":{"light":"https://mintcdn.com/switch-srl/xUIjav7hmgWy20q8/logo/switch-wordmark-ink.svg?fit=max\u0026auto=format\u0026n=xUIjav7hmgWy20q8\u0026q=85\u0026s=ea0fa9c069c3f9bc3f7a46ebefad09ff","dark":"https://mintcdn.com/switch-srl/xUIjav7hmgWy20q8/logo/switch-wordmark-white.png?fit=max\u0026auto=format\u0026n=xUIjav7hmgWy20q8\u0026q=85\u0026s=22cc14c4865c858f71fcf9156e145d21","href":"https://getswitch.io"},"favicon":"https://mintcdn.com/switch-srl/xUIjav7hmgWy20q8/favicon.png?fit=max\u0026auto=format\u0026n=xUIjav7hmgWy20q8\u0026q=85\u0026s=e9675c13bba801911f72dd4d0cb792c8","api":{"playground":{"display":"interactive"},"examples":{"defaults":"required","languages":["curl","python","javascript","go"],"prefill":true}},"background":{"color":{"light":"#FFFFFF","dark":"#131110"}},"navbar":{"primary":{"type":"button","label":"Open SWITCH","href":"https://copilot.getswitch.io"}},"footer":{"socials":{"website":"https://getswitch.io","linkedin":"https://www.linkedin.com/company/14072408"}},"fonts":{"family":"Roboto"},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"switch-srl","hasAudioNarration":false,"actualSubdomain":"switch-srl","customDomains":[],"gitSource":{"type":"github","owner":"switch-street-witcher","repo":"switch-api","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6b055b255cbaba24981e5356"},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b0d78a6d778254279ac679d","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"API Reference","count":101},{"language":"default","tag":"Fleet Management","count":23},{"language":"default","tag":"Integrations","count":16},{"language":"default","tag":"Station Based Analytics","count":13},{"language":"default","tag":"Routing Sessions","count":11},{"language":"default","tag":"Routing Operations","count":8},{"language":"default","tag":"API Keys","count":5},{"language":"default","tag":"Forecast","count":4},{"language":"default","tag":"Live","count":4},{"language":"default","tag":"Operations","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"control","enabled":true,"payload":{"type":"string","value":"control"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"api-reference/transit-analytics/get-transit-punctuality","slug":"/api-reference/transit-analytics/get-transit-punctuality","pageMetadata":{"title":"Get Transit Punctuality","description":"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside `definition.on_time_window_seconds` (by default 1 minute early to 3 minutes late) and very late beyond `very_late_seconds`.\n\n`coverage` lists the requested days without realtime data and the days with only partial data (caveat `partial_realtime_days`).\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions, transit analytics not enabled, or the location is not configured for it\n- **422**: Invalid filters (dates in the wrong order, more than 31 days, `hour_from` after `hour_to`), or too much data: narrow the date range\n- **502**: Transit data unavailable\n- **503**: The timetable is unavailable\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/punctuality","href":"/api-reference/transit-analytics/get-transit-punctuality","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside \", _jsx(_components.code, {\n children: \"definition.on_time_window_seconds\"\n }), \" (by default 1 minute early to 3 minutes late) and very late beyond \", _jsx(_components.code, {\n children: \"very_late_seconds\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [_jsx(_components.code, {\n children: \"coverage\"\n }), \" lists the requested days without realtime data and the days with only partial data (caveat \", _jsx(_components.code, {\n children: \"partial_realtime_days\"\n }), \").\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Failure Modes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"401\"\n }), \": Token is missing or invalid\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"403\"\n }), \": Insufficient permissions, transit analytics not enabled, or the location is not configured for it\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"422\"\n }), \": Invalid filters (dates in the wrong order, more than 31 days, \", _jsx(_components.code, {\n children: \"hour_from\"\n }), \" after \", _jsx(_components.code, {\n children: \"hour_to\"\n }), \"), or too much data: narrow the date range\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"502\"\n }), \": Transit data unavailable\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"503\"\n }), \": The timetable is unavailable\"]\n }), \"\\n\"]\n }), \"\\n\", _jsx(_components.p, {\n children: _jsx(_components.strong, {\n children: \"Required Auth Scopes:\"\n })\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsx(_components.li, {\n children: _jsx(_components.code, {\n children: \"copilot:analytics\"\n })\n }), \"\\n\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Get Transit Punctuality","description":"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside `definition.on_time_window_seconds` (by default 1 minute early to 3 minutes late) and very late beyond `very_late_seconds`.\n\n`coverage` lists the requested days without realtime data and the days with only partial data (caveat `partial_realtime_days`).\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions, transit analytics not enabled, or the location is not configured for it\n- **422**: Invalid filters (dates in the wrong order, more than 31 days, `hour_from` after `hour_to`), or too much data: narrow the date range\n- **502**: Transit data unavailable\n- **503**: The timetable is unavailable\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/punctuality","href":"/api-reference/transit-analytics/get-transit-punctuality","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Transit Analytics"],"summary":"Get Transit Punctuality","description":"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside `definition.on_time_window_seconds` (by default 1 minute early to 3 minutes late) and very late beyond `very_late_seconds`.\n\n`coverage` lists the requested days without realtime data and the days with only partial data (caveat `partial_realtime_days`).\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions, transit analytics not enabled, or the location is not configured for it\n- **422**: Invalid filters (dates in the wrong order, more than 31 days, `hour_from` after `hour_to`), or too much data: narrow the date range\n- **502**: Transit data unavailable\n- **503**: The timetable is unavailable\n\n**Required Auth Scopes:**\n- `copilot:analytics`","operationId":"get_transit_punctuality","security":["90203d8b-8765-4ff7-b15c-c6c2fa595519","2b70a9c6-a432-45db-a697-f1ef4500cc42"],"parameters":["7aa42cb1-aa56-4b68-ae19-0a621b2b8001","0f718c96-840d-4e13-80e4-6ab1c67547c7","8fa8763b-5767-42b2-96d8-0976ae2c1005","13953d62-587e-45da-be50-52279ad33c98","e3464eb8-6f82-475f-90fb-6e8318502258","9ab5db40-da5d-4dce-af36-74632bb91071","a9ddb30d-4ee5-49a0-acd0-5ef66a95f27d","133d6727-50ec-40f9-829c-97ab84e0270d","729db9d6-3f28-47ad-ad0a-0d8463bdb5bb"],"responses":{"200":"6b2fa61f-e031-4d39-96d7-32987349403f","401":"fab67cc5-c44b-4156-860e-08c0818113a6","403":"f17628d8-9609-4883-a6ef-d8ba9b4e007e","422":"5592c86b-4062-41cf-aeae-6a62bff397ed","502":"df312749-0d62-4920-adb9-da9e749de9f4","503":"8b3c4342-9229-45df-ae61-be126e8f9397"},"method":"get","type":"path","servers":["8722cfe8-7c57-442c-b8ed-766564865e98"],"path":"/copilot/analytics/transit/punctuality","baseUrlOptions":["https://api.getswitch.io"],"title":"Get Transit Punctuality","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"7aa42cb1-aa56-4b68-ae19-0a621b2b8001":{"name":"location","in":"query","required":true,"schema":{"type":"string","minLength":1,"description":"Transit network location, e.g. `milan`: one of the locations configured for this transit analysis in your company.","title":"Location","isRequired":true,"uniqueKey":"","typeLabel":"string"},"description":"Transit network location, e.g. `milan`: one of the locations configured for this transit analysis in your company."},"0f718c96-840d-4e13-80e4-6ab1c67547c7":{"name":"start_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"First service day, ISO 8601 date, e.g. `2026-10-01`.","title":"Start Date","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate>"},"description":"First service day, ISO 8601 date, e.g. `2026-10-01`."},"8fa8763b-5767-42b2-96d8-0976ae2c1005":{"name":"end_date","in":"query","required":true,"schema":{"type":"string","format":"date","description":"Last service day, included (ISO 8601 date, e.g. `2026-10-31`). Not before `start_date`; at most 31 days in all.","title":"End Date","isRequired":true,"uniqueKey":"","typeLabel":"string\u003cdate>"},"description":"Last service day, included (ISO 8601 date, e.g. `2026-10-31`). Not before `start_date`; at most 31 days in all."},"13953d62-587e-45da-be50-52279ad33c98":{"name":"lines","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"maxItems":40,"description":"Line names to keep, case-insensitive, e.g. `lines=1\u0026lines=12`; a name covers every route that carries it. Combined with `route_ids` as a union. Empty = all lines.","default":[],"title":"Lines","isRequired":false,"uniqueKey":"","typeLabel":"string[]"},"description":"Line names to keep, case-insensitive, e.g. `lines=1\u0026lines=12`; a name covers every route that carries it. Combined with `route_ids` as a union. Empty = all lines."},"e3464eb8-6f82-475f-90fb-6e8318502258":{"name":"route_ids","in":"query","required":false,"schema":{"type":"array","items":{"type":"string","uniqueKey":"items.[INDEX]","typeLabel":"string"},"maxItems":40,"description":"Exact GTFS `route_id`s to keep, e.g. `route_ids=R90`. Combined with `lines` as a union. Empty = all lines.","default":[],"title":"Route Ids","isRequired":false,"uniqueKey":"","typeLabel":"string[]"},"description":"Exact GTFS `route_id`s to keep, e.g. `route_ids=R90`. Combined with `lines` as a union. Empty = all lines."},"9ab5db40-da5d-4dce-af36-74632bb91071":{"name":"direction","in":"query","required":false,"schema":{"oneOf":[{"type":"integer","maximum":1,"minimum":0,"description":"GTFS `direction_id` to keep (0 or 1). Omit for both.","title":"Direction","uniqueKey":"oneOf.0","typeLabel":"integer"},{"type":"null","maximum":1,"minimum":0,"description":"GTFS `direction_id` to keep (0 or 1). Omit for both.","title":"Direction","uniqueKey":"oneOf.1","typeLabel":"null"}],"isRequired":false,"uniqueKey":"","typeLabel":"integer | null"},"description":"GTFS `direction_id` to keep (0 or 1). Omit for both."},"a9ddb30d-4ee5-49a0-acd0-5ef66a95f27d":{"name":"hour_from","in":"query","required":false,"schema":{"type":"integer","maximum":23,"minimum":0,"description":"First hour of the day to include (0-23, local time of the network), by scheduled time.","default":0,"title":"Hour From","isRequired":false,"uniqueKey":"","typeLabel":"integer"},"description":"First hour of the day to include (0-23, local time of the network), by scheduled time."},"133d6727-50ec-40f9-829c-97ab84e0270d":{"name":"hour_to","in":"query","required":false,"schema":{"type":"integer","maximum":23,"minimum":0,"description":"Last hour of the day to include (0-23, local time), not before `hour_from`.","default":23,"title":"Hour To","isRequired":false,"uniqueKey":"","typeLabel":"integer"},"description":"Last hour of the day to include (0-23, local time), not before `hour_from`."},"729db9d6-3f28-47ad-ad0a-0d8463bdb5bb":{"name":"day_type","in":"query","required":false,"schema":{"enum":["all","weekday","saturday","sunday"],"type":"string","description":"Days to keep: `all`, `weekday` (Monday to Friday), `saturday` or `sunday`.","default":"all","title":"Day Type","isRequired":false,"uniqueKey":"","typeLabel":"enum\u003cstring>"},"description":"Days to keep: `all`, `weekday` (Monday to Friday), `saturday` or `sunday`."}},"responses":{"6b2fa61f-e031-4d39-96d7-32987349403f":{"description":"Punctuality computed. Summary, breakdowns and coverage.","content":{"application/json":{"schema":{"properties":{"summary":{"properties":{"events":{"type":"integer","title":"Events","isRequired":true,"uniqueKey":"summary.events","typeLabel":"integer"},"matched_pct":{"oneOf":[{"type":"number","title":"Matched Pct","isRequired":true,"uniqueKey":"summary.matched_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Matched Pct","isRequired":true,"uniqueKey":"summary.matched_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.matched_pct","typeLabel":"number | null"},"on_time_pct":{"oneOf":[{"type":"number","title":"On Time Pct","isRequired":true,"uniqueKey":"summary.on_time_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"On Time Pct","isRequired":true,"uniqueKey":"summary.on_time_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.on_time_pct","typeLabel":"number | null"},"early_pct":{"oneOf":[{"type":"number","title":"Early Pct","isRequired":true,"uniqueKey":"summary.early_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Early Pct","isRequired":true,"uniqueKey":"summary.early_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.early_pct","typeLabel":"number | null"},"late_pct":{"oneOf":[{"type":"number","title":"Late Pct","isRequired":true,"uniqueKey":"summary.late_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Late Pct","isRequired":true,"uniqueKey":"summary.late_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.late_pct","typeLabel":"number | null"},"average_delay_seconds":{"oneOf":[{"type":"integer","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"summary.average_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"summary.average_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.average_delay_seconds","typeLabel":"integer | null"},"p90_delay_seconds":{"oneOf":[{"type":"integer","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"summary.p90_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"summary.p90_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.p90_delay_seconds","typeLabel":"integer | null"},"early_events":{"type":"integer","title":"Early Events","default":0,"uniqueKey":"summary.early_events","typeLabel":"integer"},"on_time_events":{"type":"integer","title":"On Time Events","default":0,"uniqueKey":"summary.on_time_events","typeLabel":"integer"},"late_events":{"type":"integer","title":"Late Events","default":0,"uniqueKey":"summary.late_events","typeLabel":"integer"},"very_late_events":{"type":"integer","title":"Very Late Events","default":0,"uniqueKey":"summary.very_late_events","typeLabel":"integer"},"unmatched_events":{"type":"integer","title":"Unmatched Events","default":0,"uniqueKey":"summary.unmatched_events","typeLabel":"integer"}},"type":"object","required":["events","matched_pct","on_time_pct","early_pct","late_pct","average_delay_seconds","p90_delay_seconds"],"title":"PunctualitySummary","isRequired":true,"uniqueKey":"summary","typeLabel":"PunctualitySummary · object"},"by_hour":{"items":{"properties":{"key":{"type":"string","title":"Key","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","title":"Label","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].label","typeLabel":"string"},"events":{"type":"integer","title":"Events","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].events","typeLabel":"integer"},"on_time_pct":{"oneOf":[{"type":"number","title":"On Time Pct","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].on_time_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"On Time Pct","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].on_time_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_hour.items.[INDEX].on_time_pct","typeLabel":"number | null"},"average_delay_seconds":{"oneOf":[{"type":"integer","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].average_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].average_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_hour.items.[INDEX].average_delay_seconds","typeLabel":"integer | null"},"p90_delay_seconds":{"oneOf":[{"type":"integer","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].p90_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_hour.items.[INDEX].p90_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_hour.items.[INDEX].p90_delay_seconds","typeLabel":"integer | null"},"early_pct":{"oneOf":[{"type":"number","title":"Early Pct","uniqueKey":"by_hour.items.[INDEX].early_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Early Pct","uniqueKey":"by_hour.items.[INDEX].early_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_hour.items.[INDEX].early_pct","typeLabel":"number | null"},"late_3_10_pct":{"oneOf":[{"type":"number","title":"Late 3 10 Pct","uniqueKey":"by_hour.items.[INDEX].late_3_10_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Late 3 10 Pct","uniqueKey":"by_hour.items.[INDEX].late_3_10_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_hour.items.[INDEX].late_3_10_pct","typeLabel":"number | null"},"very_late_pct":{"oneOf":[{"type":"number","title":"Very Late Pct","uniqueKey":"by_hour.items.[INDEX].very_late_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Very Late Pct","uniqueKey":"by_hour.items.[INDEX].very_late_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_hour.items.[INDEX].very_late_pct","typeLabel":"number | null"},"latitude":{"oneOf":[{"type":"number","title":"Latitude","uniqueKey":"by_hour.items.[INDEX].latitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Latitude","uniqueKey":"by_hour.items.[INDEX].latitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_hour.items.[INDEX].latitude","typeLabel":"number | null"},"longitude":{"oneOf":[{"type":"number","title":"Longitude","uniqueKey":"by_hour.items.[INDEX].longitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Longitude","uniqueKey":"by_hour.items.[INDEX].longitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_hour.items.[INDEX].longitude","typeLabel":"number | null"}},"type":"object","required":["key","label","events","on_time_pct","average_delay_seconds","p90_delay_seconds"],"title":"PunctualityGroup","uniqueKey":"by_hour.items.[INDEX]","typeLabel":"PunctualityGroup · object"},"type":"array","title":"By Hour","isRequired":true,"uniqueKey":"by_hour","typeLabel":"PunctualityGroup · object[]"},"by_line":{"items":{"properties":{"key":{"type":"string","title":"Key","isRequired":true,"uniqueKey":"by_line.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","title":"Label","isRequired":true,"uniqueKey":"by_line.items.[INDEX].label","typeLabel":"string"},"events":{"type":"integer","title":"Events","isRequired":true,"uniqueKey":"by_line.items.[INDEX].events","typeLabel":"integer"},"on_time_pct":{"oneOf":[{"type":"number","title":"On Time Pct","isRequired":true,"uniqueKey":"by_line.items.[INDEX].on_time_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"On Time Pct","isRequired":true,"uniqueKey":"by_line.items.[INDEX].on_time_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].on_time_pct","typeLabel":"number | null"},"average_delay_seconds":{"oneOf":[{"type":"integer","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_line.items.[INDEX].average_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_line.items.[INDEX].average_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].average_delay_seconds","typeLabel":"integer | null"},"p90_delay_seconds":{"oneOf":[{"type":"integer","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_line.items.[INDEX].p90_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_line.items.[INDEX].p90_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].p90_delay_seconds","typeLabel":"integer | null"},"early_pct":{"oneOf":[{"type":"number","title":"Early Pct","uniqueKey":"by_line.items.[INDEX].early_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Early Pct","uniqueKey":"by_line.items.[INDEX].early_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_line.items.[INDEX].early_pct","typeLabel":"number | null"},"late_3_10_pct":{"oneOf":[{"type":"number","title":"Late 3 10 Pct","uniqueKey":"by_line.items.[INDEX].late_3_10_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Late 3 10 Pct","uniqueKey":"by_line.items.[INDEX].late_3_10_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_line.items.[INDEX].late_3_10_pct","typeLabel":"number | null"},"very_late_pct":{"oneOf":[{"type":"number","title":"Very Late Pct","uniqueKey":"by_line.items.[INDEX].very_late_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Very Late Pct","uniqueKey":"by_line.items.[INDEX].very_late_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_line.items.[INDEX].very_late_pct","typeLabel":"number | null"},"latitude":{"oneOf":[{"type":"number","title":"Latitude","uniqueKey":"by_line.items.[INDEX].latitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Latitude","uniqueKey":"by_line.items.[INDEX].latitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_line.items.[INDEX].latitude","typeLabel":"number | null"},"longitude":{"oneOf":[{"type":"number","title":"Longitude","uniqueKey":"by_line.items.[INDEX].longitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Longitude","uniqueKey":"by_line.items.[INDEX].longitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_line.items.[INDEX].longitude","typeLabel":"number | null"}},"type":"object","required":["key","label","events","on_time_pct","average_delay_seconds","p90_delay_seconds"],"title":"PunctualityGroup","uniqueKey":"by_line.items.[INDEX]","typeLabel":"PunctualityGroup · object"},"type":"array","title":"By Line","isRequired":true,"uniqueKey":"by_line","typeLabel":"PunctualityGroup · object[]"},"by_stop":{"items":{"properties":{"key":{"type":"string","title":"Key","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","title":"Label","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].label","typeLabel":"string"},"events":{"type":"integer","title":"Events","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].events","typeLabel":"integer"},"on_time_pct":{"oneOf":[{"type":"number","title":"On Time Pct","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].on_time_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"On Time Pct","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].on_time_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_stop.items.[INDEX].on_time_pct","typeLabel":"number | null"},"average_delay_seconds":{"oneOf":[{"type":"integer","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].average_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].average_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_stop.items.[INDEX].average_delay_seconds","typeLabel":"integer | null"},"p90_delay_seconds":{"oneOf":[{"type":"integer","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].p90_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_stop.items.[INDEX].p90_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_stop.items.[INDEX].p90_delay_seconds","typeLabel":"integer | null"},"early_pct":{"oneOf":[{"type":"number","title":"Early Pct","uniqueKey":"by_stop.items.[INDEX].early_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Early Pct","uniqueKey":"by_stop.items.[INDEX].early_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_stop.items.[INDEX].early_pct","typeLabel":"number | null"},"late_3_10_pct":{"oneOf":[{"type":"number","title":"Late 3 10 Pct","uniqueKey":"by_stop.items.[INDEX].late_3_10_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Late 3 10 Pct","uniqueKey":"by_stop.items.[INDEX].late_3_10_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_stop.items.[INDEX].late_3_10_pct","typeLabel":"number | null"},"very_late_pct":{"oneOf":[{"type":"number","title":"Very Late Pct","uniqueKey":"by_stop.items.[INDEX].very_late_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Very Late Pct","uniqueKey":"by_stop.items.[INDEX].very_late_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_stop.items.[INDEX].very_late_pct","typeLabel":"number | null"},"latitude":{"oneOf":[{"type":"number","title":"Latitude","uniqueKey":"by_stop.items.[INDEX].latitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Latitude","uniqueKey":"by_stop.items.[INDEX].latitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_stop.items.[INDEX].latitude","typeLabel":"number | null"},"longitude":{"oneOf":[{"type":"number","title":"Longitude","uniqueKey":"by_stop.items.[INDEX].longitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Longitude","uniqueKey":"by_stop.items.[INDEX].longitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_stop.items.[INDEX].longitude","typeLabel":"number | null"}},"type":"object","required":["key","label","events","on_time_pct","average_delay_seconds","p90_delay_seconds"],"title":"PunctualityGroup","uniqueKey":"by_stop.items.[INDEX]","typeLabel":"PunctualityGroup · object"},"type":"array","title":"By Stop","isRequired":true,"uniqueKey":"by_stop","typeLabel":"PunctualityGroup · object[]"},"by_day":{"items":{"properties":{"key":{"type":"string","title":"Key","isRequired":true,"uniqueKey":"by_day.items.[INDEX].key","typeLabel":"string"},"label":{"type":"string","title":"Label","isRequired":true,"uniqueKey":"by_day.items.[INDEX].label","typeLabel":"string"},"events":{"type":"integer","title":"Events","isRequired":true,"uniqueKey":"by_day.items.[INDEX].events","typeLabel":"integer"},"on_time_pct":{"oneOf":[{"type":"number","title":"On Time Pct","isRequired":true,"uniqueKey":"by_day.items.[INDEX].on_time_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"On Time Pct","isRequired":true,"uniqueKey":"by_day.items.[INDEX].on_time_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_day.items.[INDEX].on_time_pct","typeLabel":"number | null"},"average_delay_seconds":{"oneOf":[{"type":"integer","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_day.items.[INDEX].average_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Average Delay Seconds","isRequired":true,"uniqueKey":"by_day.items.[INDEX].average_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_day.items.[INDEX].average_delay_seconds","typeLabel":"integer | null"},"p90_delay_seconds":{"oneOf":[{"type":"integer","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_day.items.[INDEX].p90_delay_seconds.oneOf.0","typeLabel":"integer"},{"type":"null","title":"P90 Delay Seconds","isRequired":true,"uniqueKey":"by_day.items.[INDEX].p90_delay_seconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_day.items.[INDEX].p90_delay_seconds","typeLabel":"integer | null"},"early_pct":{"oneOf":[{"type":"number","title":"Early Pct","uniqueKey":"by_day.items.[INDEX].early_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Early Pct","uniqueKey":"by_day.items.[INDEX].early_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_day.items.[INDEX].early_pct","typeLabel":"number | null"},"late_3_10_pct":{"oneOf":[{"type":"number","title":"Late 3 10 Pct","uniqueKey":"by_day.items.[INDEX].late_3_10_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Late 3 10 Pct","uniqueKey":"by_day.items.[INDEX].late_3_10_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_day.items.[INDEX].late_3_10_pct","typeLabel":"number | null"},"very_late_pct":{"oneOf":[{"type":"number","title":"Very Late Pct","uniqueKey":"by_day.items.[INDEX].very_late_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Very Late Pct","uniqueKey":"by_day.items.[INDEX].very_late_pct.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_day.items.[INDEX].very_late_pct","typeLabel":"number | null"},"latitude":{"oneOf":[{"type":"number","title":"Latitude","uniqueKey":"by_day.items.[INDEX].latitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Latitude","uniqueKey":"by_day.items.[INDEX].latitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_day.items.[INDEX].latitude","typeLabel":"number | null"},"longitude":{"oneOf":[{"type":"number","title":"Longitude","uniqueKey":"by_day.items.[INDEX].longitude.oneOf.0","typeLabel":"number"},{"type":"null","title":"Longitude","uniqueKey":"by_day.items.[INDEX].longitude.oneOf.1","typeLabel":"null"}],"uniqueKey":"by_day.items.[INDEX].longitude","typeLabel":"number | null"}},"type":"object","required":["key","label","events","on_time_pct","average_delay_seconds","p90_delay_seconds"],"title":"PunctualityGroup","uniqueKey":"by_day.items.[INDEX]","typeLabel":"PunctualityGroup · object"},"type":"array","title":"By Day","isRequired":true,"uniqueKey":"by_day","typeLabel":"PunctualityGroup · object[]"},"coverage":{"properties":{"first_available_date":{"oneOf":[{"type":"string","format":"date","title":"First Available Date","isRequired":true,"uniqueKey":"coverage.first_available_date.oneOf.0","typeLabel":"string\u003cdate>"},{"type":"null","format":"date","title":"First Available Date","isRequired":true,"uniqueKey":"coverage.first_available_date.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"coverage.first_available_date","typeLabel":"string\u003cdate> | null"},"days_without_data":{"items":{"type":"string","format":"date","uniqueKey":"coverage.days_without_data.items.[INDEX]","typeLabel":"string\u003cdate>"},"type":"array","title":"Days Without Data","isRequired":true,"uniqueKey":"coverage.days_without_data","typeLabel":"string\u003cdate>[]"},"partial_days":{"items":{"type":"string","format":"date","uniqueKey":"coverage.partial_days.items.[INDEX]","typeLabel":"string\u003cdate>"},"type":"array","title":"Partial Days","default":[],"uniqueKey":"coverage.partial_days","typeLabel":"string\u003cdate>[]"},"days_requested":{"type":"integer","title":"Days Requested","default":0,"uniqueKey":"coverage.days_requested","typeLabel":"integer"},"days_with_data":{"type":"integer","title":"Days With Data","default":0,"uniqueKey":"coverage.days_with_data","typeLabel":"integer"},"weekdays_with_data":{"type":"integer","title":"Weekdays With Data","default":0,"uniqueKey":"coverage.weekdays_with_data","typeLabel":"integer"},"saturdays_with_data":{"type":"integer","title":"Saturdays With Data","default":0,"uniqueKey":"coverage.saturdays_with_data","typeLabel":"integer"},"sundays_with_data":{"type":"integer","title":"Sundays With Data","default":0,"uniqueKey":"coverage.sundays_with_data","typeLabel":"integer"}},"type":"object","required":["first_available_date","days_without_data"],"title":"Coverage","description":"Requested days vs days with realtime data.\n\n``partial_days`` are days with data whose realtime feed covers only part\nof the timetable (see ``_partial_days``); they are also days with data.\nThe trip-share part of that rule is relative to the requested range: it\ncompares each day with the median day of the same request, so a range made\nonly of equally thin days is not flagged by it.","isRequired":true,"uniqueKey":"coverage","typeLabel":"Coverage · object"},"definition":{"properties":{"on_time_window_seconds":{"type":"object","_tupleOriginal":true,"properties":{"[0]":{"type":"integer","uniqueKey":"definition.on_time_window_seconds.[0]","typeLabel":"integer"},"[1]":{"type":"integer","uniqueKey":"definition.on_time_window_seconds.[1]","typeLabel":"integer"}},"title":"On Time Window Seconds","isRequired":true,"uniqueKey":"definition.on_time_window_seconds","typeLabel":"On Time Window Seconds · tuple"},"very_late_seconds":{"type":"integer","title":"Very Late Seconds","default":600,"uniqueKey":"definition.very_late_seconds","typeLabel":"integer"}},"type":"object","required":["on_time_window_seconds"],"title":"Definition","isRequired":true,"uniqueKey":"definition","typeLabel":"Definition · object"},"caveats":{"items":{"type":"string","uniqueKey":"caveats.items.[INDEX]","typeLabel":"string"},"type":"array","title":"Caveats","default":[],"uniqueKey":"caveats","typeLabel":"string[]"}},"type":"object","required":["summary","by_hour","by_line","by_stop","by_day","coverage","definition"],"title":"PunctualityResult","description":"Stop-event punctuality.\n\n``partial_realtime_days`` caveat: some days in ``coverage.partial_days``\nhave realtime data for only part of the timetable, so their figures cover\nonly the observed hours.","examples":[{"by_day":[{"average_delay_seconds":92,"early_pct":4,"events":43120,"key":"2026-10-01","label":"2026-10-01","late_3_10_pct":14.6,"on_time_pct":79,"p90_delay_seconds":301,"very_late_pct":2.4},{"average_delay_seconds":99,"early_pct":4.3,"events":42870,"key":"2026-10-02","label":"2026-10-02","late_3_10_pct":15.9,"on_time_pct":77.4,"p90_delay_seconds":318,"very_late_pct":2.4}],"by_hour":[{"average_delay_seconds":142,"early_pct":3,"events":98210,"key":"8","label":"8","late_3_10_pct":22.1,"on_time_pct":71.2,"p90_delay_seconds":420,"very_late_pct":3.7},{"average_delay_seconds":71,"early_pct":4.6,"events":87455,"key":"13","label":"13","late_3_10_pct":11.4,"on_time_pct":82.5,"p90_delay_seconds":255,"very_late_pct":1.5}],"by_line":[{"average_delay_seconds":151,"early_pct":2.9,"events":142380,"key":"R90","label":"90","late_3_10_pct":23,"on_time_pct":69.8,"p90_delay_seconds":446,"very_late_pct":4.3},{"average_delay_seconds":58,"early_pct":5.2,"events":61220,"key":"R73","label":"73","late_3_10_pct":9.6,"on_time_pct":84.1,"p90_delay_seconds":221,"very_late_pct":1.1}],"by_stop":[{"average_delay_seconds":172,"early_pct":1.8,"events":8410,"key":"S1123","label":"Piazzale Lodi","late_3_10_pct":26.4,"latitude":45.4469,"longitude":9.2101,"on_time_pct":66.3,"p90_delay_seconds":498,"very_late_pct":5.5}],"caveats":["partial_realtime_days"],"coverage":{"days_requested":31,"days_with_data":30,"days_without_data":["2026-10-12"],"first_available_date":"2026-06-02","partial_days":["2026-10-20"],"saturdays_with_data":5,"sundays_with_data":4,"weekdays_with_data":21},"definition":{"on_time_window_seconds":[-60,180],"very_late_seconds":600},"summary":{"average_delay_seconds":96,"early_events":52665,"early_pct":4.1,"events":1284500,"late_events":184967,"late_pct":17.3,"matched_pct":93.4,"on_time_events":1009617,"on_time_pct":78.6,"p90_delay_seconds":312,"unmatched_events":90733,"very_late_events":37251}}],"uniqueKey":"","typeLabel":"PunctualityResult · object"},"examples":{"Example":{"title":"Example","value":{"by_day":[{"average_delay_seconds":92,"early_pct":4,"events":43120,"key":"2026-10-01","label":"2026-10-01","late_3_10_pct":14.6,"on_time_pct":79,"p90_delay_seconds":301,"very_late_pct":2.4},{"average_delay_seconds":99,"early_pct":4.3,"events":42870,"key":"2026-10-02","label":"2026-10-02","late_3_10_pct":15.9,"on_time_pct":77.4,"p90_delay_seconds":318,"very_late_pct":2.4}],"by_hour":[{"average_delay_seconds":142,"early_pct":3,"events":98210,"key":"8","label":"8","late_3_10_pct":22.1,"on_time_pct":71.2,"p90_delay_seconds":420,"very_late_pct":3.7},{"average_delay_seconds":71,"early_pct":4.6,"events":87455,"key":"13","label":"13","late_3_10_pct":11.4,"on_time_pct":82.5,"p90_delay_seconds":255,"very_late_pct":1.5}],"by_line":[{"average_delay_seconds":151,"early_pct":2.9,"events":142380,"key":"R90","label":"90","late_3_10_pct":23,"on_time_pct":69.8,"p90_delay_seconds":446,"very_late_pct":4.3},{"average_delay_seconds":58,"early_pct":5.2,"events":61220,"key":"R73","label":"73","late_3_10_pct":9.6,"on_time_pct":84.1,"p90_delay_seconds":221,"very_late_pct":1.1}],"by_stop":[{"average_delay_seconds":172,"early_pct":1.8,"events":8410,"key":"S1123","label":"Piazzale Lodi","late_3_10_pct":26.4,"latitude":45.4469,"longitude":9.2101,"on_time_pct":66.3,"p90_delay_seconds":498,"very_late_pct":5.5}],"caveats":["partial_realtime_days"],"coverage":{"days_requested":31,"days_with_data":30,"days_without_data":["2026-10-12"],"first_available_date":"2026-06-02","partial_days":["2026-10-20"],"saturdays_with_data":5,"sundays_with_data":4,"weekdays_with_data":21},"definition":{"on_time_window_seconds":[-60,180],"very_late_seconds":600},"summary":{"average_delay_seconds":96,"early_events":52665,"early_pct":4.1,"events":1284500,"late_events":184967,"late_pct":17.3,"matched_pct":93.4,"on_time_events":1009617,"on_time_pct":78.6,"p90_delay_seconds":312,"unmatched_events":90733,"very_late_events":37251}}}},"exampleType":"generated"}},"exampleType":"generated"},"fab67cc5-c44b-4156-860e-08c0818113a6":{"description":"Unauthorized. Token is missing or invalid.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"f17628d8-9609-4883-a6ef-d8ba9b4e007e":{"description":"Forbidden. Transit analysis not enabled for location.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"5592c86b-4062-41cf-aeae-6a62bff397ed":{"description":"Unprocessable Entity. Validation failed.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"df312749-0d62-4920-adb9-da9e749de9f4":{"description":"Bad Gateway. Transit data unavailable.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"8b3c4342-9229-45df-ae61-be126e8f9397":{"description":"Service Unavailable. Transit schedule unavailable.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"90203d8b-8765-4ff7-b15c-c6c2fa595519":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"}},"2b70a9c6-a432-45db-a697-f1ef4500cc42":{"HTTPBearer":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"}}},"servers":{"8722cfe8-7c57-442c-b8ed-766564865e98":{"url":"https://api.getswitch.io","description":"Production"}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"},{"schemes":[{"scheme":{"type":"http","scheme":"bearer","description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","scopes":[],"schemeName":"HTTPBearer"},"schema":{"title":"Bearer Auth","type":"string","isRequired":true,"description":"An API key, sent as `Authorization: Bearer \u003ckey>`. Create one in the SWITCH Copilot under **Settings → API keys** (needs the API keys permission in your company), or with `POST /auth/api-keys`. The key is shown once, at creation.","format":"bearer","typeLabel":"string\u003cbearer>","deprecated":false},"schemeName":"HTTPBearer","name":"Authorization"}],"title":"HTTPBearer"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"switch-srl","siteName":"SWITCH","title":"Get Transit Punctuality - SWITCH","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T13:22:53.211Z","originalFileLocation":"api-reference/transit-analytics/get-transit-punctuality.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds. coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days). Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it - 422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range - 502: Transit data unavailable - 503: The timetable is unavailable Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head name=\"application-name\" content=\"SWITCH\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Get Transit Punctuality - SWITCH\">\u003cmeta data-mint-head property=\"og:description\" content=\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds. coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days). Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it - 422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range - 502: Transit data unavailable - 503: The timetable is unavailable Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"SWITCH\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://switch-srl.mintlify.site/_mintlify/api/og/v2?division=Transit+Analytics\u0026amp;title=Get+Transit+Punctuality\u0026amp;description=Punctuality+of+a+transit+network+over+a+period%2C+from+its+realtime+stop+events+matched+with+the+timetable.+Returns+the+overall+shares+of+early%2C+on-time+and+late+\u0026amp;theme=532c2210b81102e1993bdf91\u0026amp;signature=fe99240a0cb1ab234cbe9bd032c7be3aa2d213cc6fbd1744bdd5d0075ab41b52\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Get Transit Punctuality - SWITCH\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds. coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days). Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it - 422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range - 502: Transit data unavailable - 503: The timetable is unavailable Required Auth Scopes: - copilot:analytics\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://switch-srl.mintlify.site/_mintlify/api/og/v2?division=Transit+Analytics\u0026amp;title=Get+Transit+Punctuality\u0026amp;description=Punctuality+of+a+transit+network+over+a+period%2C+from+its+realtime+stop+events+matched+with+the+timetable.+Returns+the+overall+shares+of+early%2C+on-time+and+late+\u0026amp;theme=532c2210b81102e1993bdf91\u0026amp;signature=fe99240a0cb1ab234cbe9bd032c7be3aa2d213cc6fbd1744bdd5d0075ab41b52\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/switch-srl/u7l7JRBUtAMz_jDT/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"SWITCH\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#131110\">\u003clink data-mint-head rel=\"canonical\" href=\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/transit-analytics/get-transit-punctuality.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://switch-srl.mintlify.app/#organization\",\"name\":\"SWITCH\",\"url\":\"https://switch-srl.mintlify.app\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/switch-srl/xUIjav7hmgWy20q8/logo/switch-wordmark-ink.svg?fit=max\u0026auto=format\u0026n=xUIjav7hmgWy20q8\u0026q=85\u0026s=ea0fa9c069c3f9bc3f7a46ebefad09ff\"}},{\"@type\":\"WebSite\",\"@id\":\"https://switch-srl.mintlify.app#website\",\"name\":\"SWITCH\",\"url\":\"https://switch-srl.mintlify.app\",\"publisher\":{\"@id\":\"https://switch-srl.mintlify.app/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality#webpage\",\"url\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\",\"name\":\"Get Transit Punctuality\",\"description\":\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds. coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days). Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it - 422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range - 502: Transit data unavailable - 503: The timetable is unavailable Required Auth Scopes: - copilot:analytics\",\"dateModified\":\"2026-11-30T13:22:53.211Z\",\"isPartOf\":{\"@id\":\"https://switch-srl.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"SWITCH\",\"item\":\"https://switch-srl.mintlify.app\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Transit Punctuality\",\"item\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality#apireference\",\"headline\":\"Get Transit Punctuality\",\"name\":\"Get Transit Punctuality\",\"description\":\"Punctuality of a transit network over a period, from its realtime stop events matched with the timetable. Returns the overall shares of early, on-time and late stop events with average and 90th-percentile delay, and the same figures by hour, line, stop and day. An event is on time inside definition.on_time_window_seconds (by default 1 minute early to 3 minutes late) and very late beyond very_late_seconds. coverage lists the requested days without realtime data and the days with only partial data (caveat partial_realtime_days). Failure Modes: - 401: Token is missing or invalid - 403: Insufficient permissions, transit analytics not enabled, or the location is not configured for it - 422: Invalid filters (dates in the wrong order, more than 31 days, hour_from after hour_to), or too much data: narrow the date range - 502: Transit data unavailable - 503: The timetable is unavailable Required Auth Scopes: - copilot:analytics\",\"url\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\",\"mainEntityOfPage\":{\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality#webpage\"},\"dateModified\":\"2026-11-30T13:22:53.211Z\",\"publisher\":{\"@id\":\"https://switch-srl.mintlify.app/#organization\"},\"isPartOf\":{\"@id\":\"https://switch-srl.mintlify.app#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"SWITCH\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"SWITCH\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/transit-analytics/get-transit-punctuality.md","siteName":"SWITCH","nav":{"global":null,"tabs":[{"tab":"API Reference","groups":[{"group":"Get started","pages":[{"title":"Introduction","href":""}]},{"group":"API Keys","pages":[{"title":"List API Keys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/api-keys","href":"/api-reference/api-keys/list-api-keys"},{"title":"Create API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /auth/api-keys","href":"/api-reference/api-keys/create-api-key"},{"title":"Get API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/api-keys/{uuid}","href":"/api-reference/api-keys/get-api-key"},{"title":"Delete API Key","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /auth/api-keys/{uuid}","href":"/api-reference/api-keys/delete-api-key"},{"title":"Get Current User Profile","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /auth/me","href":"/api-reference/api-keys/get-current-user-profile"}]},{"group":"Grids","pages":[{"title":"Download Grid File For Single Data Scenario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /grids/stream","href":"/api-reference/grids/download-grid-file-for-single-data-scenario"},{"title":"Download Grid File For Specific Data Scenario","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /grids/stream/{data_scenario_id}","href":"/api-reference/grids/download-grid-file-for-specific-data-scenario"}]},{"group":"Forecast","pages":[{"title":"Get Forecasted Demand","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast","href":"/api-reference/forecast/get-forecasted-demand"},{"title":"Get Forecasted Demand as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/geojson","href":"/api-reference/forecast/get-forecasted-demand-as-geojson"},{"title":"Get Forecasted Demand by Type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/{forecast_type}","href":"/api-reference/forecast/get-forecasted-demand-by-type"},{"title":"Get Forecasted Demand by Type as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /forecast/{forecast_type}/geojson","href":"/api-reference/forecast/get-forecasted-demand-by-type-as-geojson"}]},{"group":"Operations","pages":[{"title":"Get Imbalance Snapshot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/imbalance","href":"/api-reference/operations/get-imbalance-snapshot"},{"title":"Get Imbalance Snapshot as GeoJSON","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/imbalance/geojson","href":"/api-reference/operations/get-imbalance-snapshot-as-geojson"},{"title":"Get Rebalancing Suggestions","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json post /operations/rebalance","href":"/api-reference/operations/get-rebalancing-suggestions"},{"title":"Generate Operations Based on Strategies","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/suggest","href":"/api-reference/operations/generate-operations-based-on-strategies"}]},{"group":"Routing","pages":[{"title":"Solve Routing Optimization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routing","href":"/api-reference/routing/solve-routing-optimization"},{"title":"Solve Multi-Fleet Routing (Two-Phase Greedy)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routing/multi-fleet","href":"/api-reference/routing/solve-multi-fleet-routing-two-phase-greedy"}]},{"group":"Routing Sessions","pages":[{"title":"List Sessions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions","href":"/api-reference/routing-sessions/list-sessions"},{"title":"Dispatch Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/sessions","href":"/api-reference/routing-sessions/dispatch-session"},{"title":"Get Session Detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions/{slug}","href":"/api-reference/routing-sessions/get-session-detail"},{"title":"Update Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/sessions/{slug}","href":"/api-reference/routing-sessions/update-session"},{"title":"Delete Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/sessions/{slug}","href":"/api-reference/routing-sessions/delete-session"},{"title":"List Routes in Session","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/sessions/{slug}/routes","href":"/api-reference/routing-sessions/list-routes-in-session"},{"title":"List Routes (Cross-Session)","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes","href":"/api-reference/routing-sessions/list-routes-cross-session"},{"title":"Get Route Detail","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes/{route_id}","href":"/api-reference/routing-sessions/get-route-detail"},{"title":"Update Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/routes/{route_id}","href":"/api-reference/routing-sessions/update-route"},{"title":"Assign Drivers to Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/drivers","href":"/api-reference/routing-sessions/assign-drivers-to-route"},{"title":"Remove Driver from Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/routes/{route_id}/drivers/{user_id}","href":"/api-reference/routing-sessions/remove-driver-from-route"}]},{"group":"Routing Operations","pages":[{"title":"List Operations in Route","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/routes/{route_id}/operations","href":"/api-reference/routing-operations/list-operations-in-route"},{"title":"Complete Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/complete","href":"/api-reference/routing-operations/complete-operation"},{"title":"Undo Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/undo","href":"/api-reference/routing-operations/undo-operation"},{"title":"Cancel Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/cancel","href":"/api-reference/routing-operations/cancel-operation"},{"title":"Restore Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/operations/{op_id}/restore","href":"/api-reference/routing-operations/restore-operation"},{"title":"Generate Reroute Preview","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/generate","href":"/api-reference/routing-operations/generate-reroute-preview"},{"title":"Optimize Reroute","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/optimize","href":"/api-reference/routing-operations/optimize-reroute"},{"title":"Apply Rerouted Operations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/routes/{route_id}/reroute/apply","href":"/api-reference/routing-operations/apply-rerouted-operations"}]},{"group":"Fleet Management","pages":[{"title":"List Cargo Vehicles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/cargo-vehicles","href":"/api-reference/fleet-management/list-cargo-vehicles"},{"title":"Create Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/cargo-vehicles","href":"/api-reference/fleet-management/create-cargo-vehicle"},{"title":"Get Cargo Vehicle by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/get-cargo-vehicle-by-id"},{"title":"Update Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/update-cargo-vehicle"},{"title":"Delete Cargo Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/cargo-vehicles/{vehicle_id}","href":"/api-reference/fleet-management/delete-cargo-vehicle"},{"title":"List Depots","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/depots","href":"/api-reference/fleet-management/list-depots"},{"title":"Create Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/depots","href":"/api-reference/fleet-management/create-depot"},{"title":"Get Depot by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/depots/{depot_id}","href":"/api-reference/fleet-management/get-depot-by-id"},{"title":"Update Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/depots/{depot_id}","href":"/api-reference/fleet-management/update-depot"},{"title":"Delete Depot","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/depots/{depot_id}","href":"/api-reference/fleet-management/delete-depot"},{"title":"Synchronize Company Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/stations/sync","href":"/api-reference/fleet-management/synchronize-company-stations"},{"title":"List Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/stations","href":"/api-reference/fleet-management/list-stations"},{"title":"Create Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/stations","href":"/api-reference/fleet-management/create-station"},{"title":"Get Station by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/stations/{station_id}","href":"/api-reference/fleet-management/get-station-by-id"},{"title":"Update Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/stations/{station_id}","href":"/api-reference/fleet-management/update-station"},{"title":"Delete Station","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/stations/{station_id}","href":"/api-reference/fleet-management/delete-station"},{"title":"List Drivers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/drivers","href":"/api-reference/fleet-management/list-drivers"},{"title":"Create Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /operations/drivers","href":"/api-reference/fleet-management/create-driver"},{"title":"Get Driver by ID","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/get-driver-by-id"},{"title":"Update Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/update-driver"},{"title":"Delete Driver","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /operations/drivers/{driver_id}","href":"/api-reference/fleet-management/delete-driver"},{"title":"Get Fleet Settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /operations/fleet-settings","href":"/api-reference/fleet-management/get-fleet-settings"},{"title":"Update Fleet Settings","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /operations/fleet-settings","href":"/api-reference/fleet-management/update-fleet-settings"}]},{"group":"Free Float Analytics","pages":[{"title":"Get Free-Float Trip History","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/free-float/{provider}/trip_history","href":"/api-reference/free-float-analytics/get-free-float-trip-history"}]},{"group":"Live","pages":[{"title":"Get Live Fleet Status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/fleet-status","href":"/api-reference/live/get-live-fleet-status"},{"title":"List Live Deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/deliveries","href":"/api-reference/live/list-live-deliveries"},{"title":"Get Live Transit Status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/transit/status","href":"/api-reference/live/get-live-transit-status"},{"title":"Get Live Transit Line","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/live/transit/lines/{route_id}","href":"/api-reference/live/get-live-transit-line"}]},{"group":"Station Based Analytics","pages":[{"title":"Get Station Summary Metrics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/summary_metrics","href":"/api-reference/station-based-analytics/get-station-summary-metrics"},{"title":"Get Vehicle Shortage Mapping","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/vehicle_shortage_mapping","href":"/api-reference/station-based-analytics/get-vehicle-shortage-mapping"},{"title":"Get Commuting Station Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/commuting_stations","href":"/api-reference/station-based-analytics/get-commuting-station-analysis"},{"title":"Get Missed Demand Estimation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/missed_demand","href":"/api-reference/station-based-analytics/get-missed-demand-estimation"},{"title":"Get Station Refill Time Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/refill_times","href":"/api-reference/station-based-analytics/get-station-refill-time-analysis"},{"title":"Get Competitor Opportunity Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/competitor_opportunities","href":"/api-reference/station-based-analytics/get-competitor-opportunity-analysis"},{"title":"Get Deployment Window Optimization","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/deployment_windows","href":"/api-reference/station-based-analytics/get-deployment-window-optimization"},{"title":"Get Station Trip Volume Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/trip_volume","href":"/api-reference/station-based-analytics/get-station-trip-volume-analysis"},{"title":"Get Demand Growth Trends","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/growth_trends","href":"/api-reference/station-based-analytics/get-demand-growth-trends"},{"title":"Get Calendar Event Impact Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/calendar_events","href":"/api-reference/station-based-analytics/get-calendar-event-impact-analysis"},{"title":"Get Station Capacity Alerts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/capacity_alerts","href":"/api-reference/station-based-analytics/get-station-capacity-alerts"},{"title":"Get E-Bike Usage Pattern Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/ebike_patterns","href":"/api-reference/station-based-analytics/get-e-bike-usage-pattern-analysis"},{"title":"Get After-Hours Demand Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/station-based/{provider}/after_hours_demand","href":"/api-reference/station-based-analytics/get-after-hours-demand-analysis"}]},{"group":"Zone Based Analytics","pages":[{"title":"Get Zone Trip Volume","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/trip_volume","href":"/api-reference/zone-based-analytics/get-zone-trip-volume"},{"title":"Get Commuting Zone Analysis","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/commuting_zones","href":"/api-reference/zone-based-analytics/get-commuting-zone-analysis"},{"title":"Get Zone Shortage Mapping","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/shortage_mapping","href":"/api-reference/zone-based-analytics/get-zone-shortage-mapping"},{"title":"Get Zone Growth Trends","description":"Zones whose daily trip activity is growing or declining, from a linear regression over the period. `growth_rate` is the weekly change of daily trips and `confidence_score` the R² of the fit; only zones with a clear trend (R² above 0.3) are listed. `feasibility` is `limited` while zones need less than 7 days of history to be included.\n\n**Failure Modes:**\n- **400**: `precision` given with a zoning system other than `geohash7`\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions\n- **404**: `no_data_binding` when the provider or location is not enabled for your company\n- **422**: Invalid filter parameters\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/zone-based/{provider}/growth_trends","href":"/api-reference/zone-based-analytics/get-zone-growth-trends"}]},{"group":"Transit Analytics","pages":[{"title":"Get Transit Punctuality","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/punctuality","href":"/api-reference/transit-analytics/get-transit-punctuality"},{"title":"Get Transit Line Details","description":"One line of the transit network, from its timetable: names and colour, and for each direction its headsign, ordered stops and route shapes (GeoJSON). Use it to draw a line from the punctuality or service delivery results.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: Insufficient permissions, service delivery analytics not enabled, or the location is not configured for it\n- **404**: No line with this `route_id` in the timetable\n- **422**: Invalid `route_id` or `location`\n- **503**: The timetable is unavailable\n\n**Required Auth Scopes:**\n- `copilot:analytics`","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/lines/{route_id}","href":"/api-reference/transit-analytics/get-transit-line-details"},{"title":"Get Transit Service Delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /copilot/analytics/transit/service-delivery","href":"/api-reference/transit-analytics/get-transit-service-delivery"}]},{"group":"Integrations","pages":[{"title":"List Fleet Vehicles","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/vehicles","href":"/api-reference/integrations/list-fleet-vehicles"},{"title":"Get Fleet Vehicle","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/vehicles/{vehicle_id}","href":"/api-reference/integrations/get-fleet-vehicle"},{"title":"List Fleet Stations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/stations","href":"/api-reference/integrations/list-fleet-stations"},{"title":"List Fleet Tasks","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/tasks","href":"/api-reference/integrations/list-fleet-tasks"},{"title":"List Vehicle Statuses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/statuses","href":"/api-reference/integrations/list-vehicle-statuses"},{"title":"List Allowed Actions by Vehicle Type","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/actions/allowed","href":"/api-reference/integrations/list-allowed-actions-by-vehicle-type"},{"title":"List Vehicle Actions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/actions/{vehicle_id}","href":"/api-reference/integrations/list-vehicle-actions"},{"title":"List Remote Operations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/remote-operations","href":"/api-reference/integrations/list-remote-operations"},{"title":"List Custom Vehicle States","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/custom-states","href":"/api-reference/integrations/list-custom-vehicle-states"},{"title":"Set Vehicle Status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/statuses/{vehicle_id}/set","href":"/api-reference/integrations/set-vehicle-status"},{"title":"Trigger Vehicle Action","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/actions/{vehicle_id}/trigger","href":"/api-reference/integrations/trigger-vehicle-action"},{"title":"Complete Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/remote-operations/{operation_id}/complete","href":"/api-reference/integrations/complete-remote-operation"},{"title":"Reopen Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/remote-operations/{operation_id}/undo","href":"/api-reference/integrations/reopen-remote-operation"},{"title":"Delete Remote Operation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /integrations/remote-operations/{operation_id}","href":"/api-reference/integrations/delete-remote-operation"},{"title":"Set Vehicle Custom State","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /integrations/custom-states/{vehicle_id}/set","href":"/api-reference/integrations/set-vehicle-custom-state"},{"title":"Get Integration Availability","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /integrations/availability","href":"/api-reference/integrations/get-integration-availability"}]}]},{"tab":"Guides","pages":[{"title":"Guides","href":"/guides/myles-mcp"}]}]},"basePath":"","title":"Get Transit Punctuality - SWITCH","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-BMn8tSe3.js","snippetPresets-Dl5ZrD9W.js","utils-CddEzDcs.js","style-to-object-BY3JEAdk.js","utils-Dym31Pnf.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-ZiqR8hPK.js","conditional-requirements-CFM0id0Q.js","cloneDeep-D3fPbylz.js","_Uint8Array-BcNtDki0.js","isObject-FP1Yky1u.js","ApiExamples-4Sf3CFhl.js","usePlaygroundInputsStore-Ck91l6q0.js","shallow-DapBSR9G.js","isEqual-Clu_sGzx.js","CodeSnippets-DAVHdSX2.js","CodeSnippet-Be6AcO_D.js","use-playground-group-access-CteWws2O.js","Page-_aL_PM_2.js","api-description-markdown-BPoPkVJQ.js","DynamicMarkdown-QJ7LkRm3.js","SectionHeading-DyxPTJti.js","MethodPill-CGjK-dNY.js","getPastedJson-C4YIGTOJ.js","Check2Icon-B7COpIZE.js","axios-CsQoIw0U.js","Markdown-Bquzb4Gw.js","AssistantPageLink-wSgGy_i5.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}