Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line.
Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too.
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
Service delivery computed. Summary, breakdowns, coverage.
Scheduled vs operated trips.
Service days with zero realtime observations for the whole feed scope (no
vehicle position trip and no trip-update event for that service date) are
excluded from every scheduled-trip denominator and aggregate; they are
listed in coverage.days_without_data and flagged by the
days_without_realtime_data_excluded caveat.
On partial realtime days (coverage.partial_days, caveat
partial_realtime_days) every scheduled trip starting before the first
or after the last realtime observation of that day (trip updates or vehicle
positions) is excluded from every denominator, observed or not, so a feed
outage is neither reported as missed service nor inflates operated %.
Trips without stop times (no known start) stay on partial days only when
observed. Gaps inside the observed window (flagged by the low trip share
rule) cannot be told apart from missed trips and still count as missing.
A scheduled trip that was not operated is cancelled when its trip update
says CANCELED, otherwise it is counted in missing_trips: not observed
(no realtime data), not necessarily cancelled. Only some feeds send
cancellations; for the others cancelled_trips is 0.
summary
ServiceDeliverySummary · object
required
Show child attributes
by_line
DeliveryLine · object[]
required
Show child attributes
by_day
DeliveryDay · object[]
required
Show child attributes
active_fleet_by_hour
FleetHour · object[]
required
Show child attributes
missing_trips
MissingTrip · 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[]
required
missing_trips_by_hour
MissingTripsHour · object[]
Show child attributes
missing_trips_by_time_band
Missing Trips By Time Band · object
Show child attributes
missing_trips_by_line_and_band
MissingTripsLine · object[]
Show child attributes
{"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":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"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-service-delivery","slug":"/api-reference/transit-analytics/get-transit-service-delivery","pageMetadata":{"title":"Get Transit Service Delivery","description":"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is `cancelled` when the feed says so (only some feeds do) or `missing` (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line.\n\nDays with no realtime data at all are left out of every figure (`coverage.days_without_data`); on days with partial data, trips outside the observed hours are left out too.\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/service-delivery","href":"/api-reference/transit-analytics/get-transit-service-delivery","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: [\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is \", _jsx(_components.code, {\n children: \"cancelled\"\n }), \" when the feed says so (only some feeds do) or \", _jsx(_components.code, {\n children: \"missing\"\n }), \" (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line.\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Days with no realtime data at all are left out of every figure (\", _jsx(_components.code, {\n children: \"coverage.days_without_data\"\n }), \"); on days with partial data, trips outside the observed hours are left out too.\"]\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 Service Delivery","description":"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is `cancelled` when the feed says so (only some feeds do) or `missing` (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line.\n\nDays with no realtime data at all are left out of every figure (`coverage.days_without_data`); on days with partial data, trips outside the observed hours are left out too.\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/service-delivery","href":"/api-reference/transit-analytics/get-transit-service-delivery","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":[],"openApiReferenceData":{"operation":{"tags":["Transit Analytics"],"summary":"Get Transit Service Delivery","description":"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is `cancelled` when the feed says so (only some feeds do) or `missing` (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line.\n\nDays with no realtime data at all are left out of every figure (`coverage.days_without_data`); on days with partial data, trips outside the observed hours are left out too.\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_service_delivery","security":["f9b43ca2-6339-4a5a-8a0b-5b2947d92bd7","33343edf-3236-4fda-b98d-ecb77c063a0a"],"parameters":["c2d59b73-bc29-45aa-b05d-b75a01a9cd0f","bc0bec0a-26c8-4efc-8b09-872358bfdddf","c8734154-c630-437a-98d5-a2b743472d7a","c1b8c9d1-82cc-4a7a-b3be-6a7c9a2bf13c","03f0fd84-b887-4a25-94d8-b92bd8920640","ffddad47-c67e-4bbf-a50f-cdd176eafc42","0b354c91-d403-4a5a-83f1-86ad2121bdd3","77b7a68d-ab52-4bdc-acd5-fd48bcf4bca3","6fca30b6-be6b-4fce-aa19-61ef006b5a72"],"responses":{"200":"0e98e15d-7db0-47ac-a536-c718078d091a","401":"f7ef490e-5020-443d-9087-90fc4e071ea7","403":"1fa97c0a-03e0-401a-92ae-038193465ba5","422":"69d4799e-bee9-4cfe-beb9-7e1895c8a931","502":"fd5b2ca5-ae3b-4fc5-8cab-0adef9ea24b0","503":"ebff3d46-9f80-42cd-9f9f-6f2f3cb7f605"},"method":"get","type":"path","servers":["8722cfe8-7c57-442c-b8ed-766564865e98"],"path":"/copilot/analytics/transit/service-delivery","baseUrlOptions":["https://api.getswitch.io"],"title":"Get Transit Service Delivery","codeSamples":[],"requestExampleLanguages":["bash","python","javascript","go"],"requiredOnlyExamples":true,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[]},"dependencies":{"parameters":{"c2d59b73-bc29-45aa-b05d-b75a01a9cd0f":{"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."},"bc0bec0a-26c8-4efc-8b09-872358bfdddf":{"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`."},"c8734154-c630-437a-98d5-a2b743472d7a":{"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."},"c1b8c9d1-82cc-4a7a-b3be-6a7c9a2bf13c":{"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."},"03f0fd84-b887-4a25-94d8-b92bd8920640":{"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."},"ffddad47-c67e-4bbf-a50f-cdd176eafc42":{"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."},"0b354c91-d403-4a5a-83f1-86ad2121bdd3":{"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."},"77b7a68d-ab52-4bdc-acd5-fd48bcf4bca3":{"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`."},"6fca30b6-be6b-4fce-aa19-61ef006b5a72":{"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":{"0e98e15d-7db0-47ac-a536-c718078d091a":{"description":"Service delivery computed. Summary, breakdowns, coverage.","content":{"application/json":{"schema":{"properties":{"summary":{"properties":{"scheduled_trips":{"type":"integer","title":"Scheduled Trips","isRequired":true,"uniqueKey":"summary.scheduled_trips","typeLabel":"integer"},"operated_trips":{"type":"integer","title":"Operated Trips","isRequired":true,"uniqueKey":"summary.operated_trips","typeLabel":"integer"},"operated_pct":{"oneOf":[{"type":"number","title":"Operated Pct","isRequired":true,"uniqueKey":"summary.operated_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Operated Pct","isRequired":true,"uniqueKey":"summary.operated_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.operated_pct","typeLabel":"number | null"},"missing_trips":{"type":"integer","title":"Missing Trips","isRequired":true,"uniqueKey":"summary.missing_trips","typeLabel":"integer"},"peak_active_vehicles":{"oneOf":[{"type":"number","title":"Peak Active Vehicles","isRequired":true,"uniqueKey":"summary.peak_active_vehicles.oneOf.0","typeLabel":"number"},{"type":"null","title":"Peak Active Vehicles","isRequired":true,"uniqueKey":"summary.peak_active_vehicles.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"summary.peak_active_vehicles","typeLabel":"number | null"},"cancelled_trips":{"type":"integer","title":"Cancelled Trips","default":0,"uniqueKey":"summary.cancelled_trips","typeLabel":"integer"}},"type":"object","required":["scheduled_trips","operated_trips","operated_pct","missing_trips","peak_active_vehicles"],"title":"ServiceDeliverySummary","isRequired":true,"uniqueKey":"summary","typeLabel":"ServiceDeliverySummary · object"},"by_line":{"items":{"properties":{"route_id":{"type":"string","title":"Route Id","isRequired":true,"uniqueKey":"by_line.items.[INDEX].route_id","typeLabel":"string"},"route_short_name":{"oneOf":[{"type":"string","title":"Route Short Name","isRequired":true,"uniqueKey":"by_line.items.[INDEX].route_short_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Route Short Name","isRequired":true,"uniqueKey":"by_line.items.[INDEX].route_short_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].route_short_name","typeLabel":"string | null"},"scheduled":{"type":"integer","title":"Scheduled","isRequired":true,"uniqueKey":"by_line.items.[INDEX].scheduled","typeLabel":"integer"},"operated":{"type":"integer","title":"Operated","isRequired":true,"uniqueKey":"by_line.items.[INDEX].operated","typeLabel":"integer"},"operated_pct":{"oneOf":[{"type":"number","title":"Operated Pct","isRequired":true,"uniqueKey":"by_line.items.[INDEX].operated_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Operated Pct","isRequired":true,"uniqueKey":"by_line.items.[INDEX].operated_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].operated_pct","typeLabel":"number | null"},"headway_cv_observed":{"oneOf":[{"type":"number","title":"Headway Cv Observed","isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_observed.oneOf.0","typeLabel":"number"},{"type":"null","title":"Headway Cv Observed","isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_observed.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_observed","typeLabel":"number | null"},"headway_cv_scheduled":{"oneOf":[{"type":"number","title":"Headway Cv Scheduled","isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_scheduled.oneOf.0","typeLabel":"number"},{"type":"null","title":"Headway Cv Scheduled","isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_scheduled.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_line.items.[INDEX].headway_cv_scheduled","typeLabel":"number | null"},"cancelled":{"type":"integer","title":"Cancelled","default":0,"uniqueKey":"by_line.items.[INDEX].cancelled","typeLabel":"integer"}},"type":"object","required":["route_id","route_short_name","scheduled","operated","operated_pct","headway_cv_observed","headway_cv_scheduled"],"title":"DeliveryLine","uniqueKey":"by_line.items.[INDEX]","typeLabel":"DeliveryLine · object"},"type":"array","title":"By Line","isRequired":true,"uniqueKey":"by_line","typeLabel":"DeliveryLine · object[]"},"by_day":{"items":{"properties":{"service_date":{"type":"string","format":"date","title":"Service Date","isRequired":true,"uniqueKey":"by_day.items.[INDEX].service_date","typeLabel":"string\u003cdate>"},"scheduled":{"type":"integer","title":"Scheduled","isRequired":true,"uniqueKey":"by_day.items.[INDEX].scheduled","typeLabel":"integer"},"operated":{"type":"integer","title":"Operated","isRequired":true,"uniqueKey":"by_day.items.[INDEX].operated","typeLabel":"integer"},"operated_pct":{"oneOf":[{"type":"number","title":"Operated Pct","isRequired":true,"uniqueKey":"by_day.items.[INDEX].operated_pct.oneOf.0","typeLabel":"number"},{"type":"null","title":"Operated Pct","isRequired":true,"uniqueKey":"by_day.items.[INDEX].operated_pct.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"by_day.items.[INDEX].operated_pct","typeLabel":"number | null"},"cancelled":{"type":"integer","title":"Cancelled","default":0,"uniqueKey":"by_day.items.[INDEX].cancelled","typeLabel":"integer"}},"type":"object","required":["service_date","scheduled","operated","operated_pct"],"title":"DeliveryDay","uniqueKey":"by_day.items.[INDEX]","typeLabel":"DeliveryDay · object"},"type":"array","title":"By Day","isRequired":true,"uniqueKey":"by_day","typeLabel":"DeliveryDay · object[]"},"active_fleet_by_hour":{"items":{"properties":{"hour":{"type":"integer","title":"Hour","isRequired":true,"uniqueKey":"active_fleet_by_hour.items.[INDEX].hour","typeLabel":"integer"},"average_active_vehicles":{"type":"number","title":"Average Active Vehicles","isRequired":true,"uniqueKey":"active_fleet_by_hour.items.[INDEX].average_active_vehicles","typeLabel":"number"}},"type":"object","required":["hour","average_active_vehicles"],"title":"FleetHour","uniqueKey":"active_fleet_by_hour.items.[INDEX]","typeLabel":"FleetHour · object"},"type":"array","title":"Active Fleet By Hour","isRequired":true,"uniqueKey":"active_fleet_by_hour","typeLabel":"FleetHour · object[]"},"missing_trips":{"items":{"properties":{"service_date":{"type":"string","format":"date","title":"Service Date","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].service_date","typeLabel":"string\u003cdate>"},"route_id":{"type":"string","title":"Route Id","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].route_id","typeLabel":"string"},"route_short_name":{"oneOf":[{"type":"string","title":"Route Short Name","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].route_short_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Route Short Name","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].route_short_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].route_short_name","typeLabel":"string | null"},"direction_id":{"oneOf":[{"type":"integer","title":"Direction Id","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].direction_id.oneOf.0","typeLabel":"integer"},{"type":"null","title":"Direction Id","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].direction_id.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].direction_id","typeLabel":"integer | null"},"first_departure":{"oneOf":[{"type":"string","title":"First Departure","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].first_departure.oneOf.0","typeLabel":"string"},{"type":"null","title":"First Departure","isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].first_departure.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"missing_trips.items.[INDEX].first_departure","typeLabel":"string | null"}},"type":"object","required":["service_date","route_id","route_short_name","direction_id","first_departure"],"title":"MissingTrip","uniqueKey":"missing_trips.items.[INDEX]","typeLabel":"MissingTrip · object"},"type":"array","title":"Missing Trips","isRequired":true,"uniqueKey":"missing_trips","typeLabel":"MissingTrip · 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","isRequired":true,"uniqueKey":"caveats","typeLabel":"string[]"},"missing_trips_by_hour":{"items":{"properties":{"hour":{"type":"integer","title":"Hour","isRequired":true,"uniqueKey":"missing_trips_by_hour.items.[INDEX].hour","typeLabel":"integer"},"missing_trips":{"type":"integer","title":"Missing Trips","isRequired":true,"uniqueKey":"missing_trips_by_hour.items.[INDEX].missing_trips","typeLabel":"integer"}},"type":"object","required":["hour","missing_trips"],"title":"MissingTripsHour","uniqueKey":"missing_trips_by_hour.items.[INDEX]","typeLabel":"MissingTripsHour · object"},"type":"array","title":"Missing Trips By Hour","default":[],"uniqueKey":"missing_trips_by_hour","typeLabel":"MissingTripsHour · object[]"},"missing_trips_by_time_band":{"additionalProperties":{"type":"integer","uniqueKey":"missing_trips_by_time_band.additionalProperties","typeLabel":"integer"},"type":"object","title":"Missing Trips By Time Band","default":{},"uniqueKey":"missing_trips_by_time_band","typeLabel":"Missing Trips By Time Band · object"},"missing_trips_by_line_and_band":{"items":{"properties":{"route_id":{"type":"string","title":"Route Id","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].route_id","typeLabel":"string"},"route_short_name":{"oneOf":[{"type":"string","title":"Route Short Name","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].route_short_name.oneOf.0","typeLabel":"string"},{"type":"null","title":"Route Short Name","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].route_short_name.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].route_short_name","typeLabel":"string | null"},"morning":{"type":"integer","title":"Morning","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].morning","typeLabel":"integer"},"afternoon":{"type":"integer","title":"Afternoon","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].afternoon","typeLabel":"integer"},"evening":{"type":"integer","title":"Evening","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].evening","typeLabel":"integer"},"unknown_start":{"type":"integer","title":"Unknown Start","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].unknown_start","typeLabel":"integer"},"total":{"type":"integer","title":"Total","isRequired":true,"uniqueKey":"missing_trips_by_line_and_band.items.[INDEX].total","typeLabel":"integer"}},"type":"object","required":["route_id","route_short_name","morning","afternoon","evening","unknown_start","total"],"title":"MissingTripsLine","description":"Missing trips of one route per time band (see ServiceDeliveryResult).","uniqueKey":"missing_trips_by_line_and_band.items.[INDEX]","typeLabel":"MissingTripsLine · object"},"type":"array","title":"Missing Trips By Line And Band","default":[],"uniqueKey":"missing_trips_by_line_and_band","typeLabel":"MissingTripsLine · object[]"}},"type":"object","required":["summary","by_line","by_day","active_fleet_by_hour","missing_trips","coverage","definition","caveats"],"title":"ServiceDeliveryResult","description":"Scheduled vs operated trips.\n\nService days with zero realtime observations for the whole feed scope (no\nvehicle position trip and no trip-update event for that service date) are\nexcluded from every scheduled-trip denominator and aggregate; they are\nlisted in ``coverage.days_without_data`` and flagged by the\n``days_without_realtime_data_excluded`` caveat.\n\nOn partial realtime days (``coverage.partial_days``, caveat\n``partial_realtime_days``) every scheduled trip starting before the first\nor after the last realtime observation of that day (trip updates or vehicle\npositions) is excluded from every denominator, observed or not, so a feed\noutage is neither reported as missed service nor inflates operated %.\nTrips without stop times (no known start) stay on partial days only when\nobserved. Gaps inside the observed window (flagged by the low trip share\nrule) cannot be told apart from missed trips and still count as missing.\n\nA scheduled trip that was not operated is ``cancelled`` when its trip update\nsays CANCELED, otherwise it is counted in ``missing_trips``: not observed\n(no realtime data), not necessarily cancelled. Only some feeds send\ncancellations; for the others ``cancelled_trips`` is 0.","examples":[{"active_fleet_by_hour":[{"average_active_vehicles":398.2,"hour":8},{"average_active_vehicles":301.7,"hour":13}],"by_day":[{"cancelled":18,"operated":6322,"operated_pct":97.6,"scheduled":6480,"service_date":"2026-10-01"},{"cancelled":25,"operated":6275,"operated_pct":96.8,"scheduled":6480,"service_date":"2026-10-02"}],"by_line":[{"cancelled":64,"headway_cv_observed":0.42,"headway_cv_scheduled":0.18,"operated":8890,"operated_pct":95.6,"route_id":"R90","route_short_name":"90","scheduled":9300},{"cancelled":0,"headway_cv_observed":0.27,"headway_cv_scheduled":0.21,"operated":5371,"operated_pct":99.1,"route_id":"R73","route_short_name":"73","scheduled":5420}],"caveats":["holiday_exceptions_not_in_timetable","days_without_realtime_data_excluded","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},"missing_trips":[{"direction_id":0,"first_departure":"07:42","route_id":"R90","route_short_name":"90","service_date":"2026-10-01"},{"direction_id":1,"first_departure":"18:05","route_id":"R90","route_short_name":"90","service_date":"2026-10-02"}],"missing_trips_by_hour":[{"hour":7,"missing_trips":512},{"hour":18,"missing_trips":468}],"missing_trips_by_line_and_band":[{"afternoon":102,"evening":93,"morning":151,"route_id":"R90","route_short_name":"90","total":346,"unknown_start":0}],"missing_trips_by_time_band":{"afternoon":1310,"evening":1415,"morning":1840,"unknown_start":55},"summary":{"cancelled_trips":530,"missing_trips":4620,"operated_pct":97.2,"operated_trips":181250,"peak_active_vehicles":412.5,"scheduled_trips":186400}}],"uniqueKey":"","typeLabel":"ServiceDeliveryResult · object"},"examples":{"Example":{"title":"Example","value":{"active_fleet_by_hour":[{"average_active_vehicles":398.2,"hour":8},{"average_active_vehicles":301.7,"hour":13}],"by_day":[{"cancelled":18,"operated":6322,"operated_pct":97.6,"scheduled":6480,"service_date":"2026-10-01"},{"cancelled":25,"operated":6275,"operated_pct":96.8,"scheduled":6480,"service_date":"2026-10-02"}],"by_line":[{"cancelled":64,"headway_cv_observed":0.42,"headway_cv_scheduled":0.18,"operated":8890,"operated_pct":95.6,"route_id":"R90","route_short_name":"90","scheduled":9300},{"cancelled":0,"headway_cv_observed":0.27,"headway_cv_scheduled":0.21,"operated":5371,"operated_pct":99.1,"route_id":"R73","route_short_name":"73","scheduled":5420}],"caveats":["holiday_exceptions_not_in_timetable","days_without_realtime_data_excluded","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},"missing_trips":[{"direction_id":0,"first_departure":"07:42","route_id":"R90","route_short_name":"90","service_date":"2026-10-01"},{"direction_id":1,"first_departure":"18:05","route_id":"R90","route_short_name":"90","service_date":"2026-10-02"}],"missing_trips_by_hour":[{"hour":7,"missing_trips":512},{"hour":18,"missing_trips":468}],"missing_trips_by_line_and_band":[{"afternoon":102,"evening":93,"morning":151,"route_id":"R90","route_short_name":"90","total":346,"unknown_start":0}],"missing_trips_by_time_band":{"afternoon":1310,"evening":1415,"morning":1840,"unknown_start":55},"summary":{"cancelled_trips":530,"missing_trips":4620,"operated_pct":97.2,"operated_trips":181250,"peak_active_vehicles":412.5,"scheduled_trips":186400}}}},"exampleType":"generated"}},"exampleType":"generated"},"f7ef490e-5020-443d-9087-90fc4e071ea7":{"description":"Unauthorized. Token is missing or invalid.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"1fa97c0a-03e0-401a-92ae-038193465ba5":{"description":"Forbidden. Transit analysis not enabled for location.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"69d4799e-bee9-4cfe-beb9-7e1895c8a931":{"description":"Unprocessable Entity. Validation failed.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"fd5b2ca5-ae3b-4fc5-8cab-0adef9ea24b0":{"description":"Bad Gateway. Transit data unavailable.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}},"ebff3d46-9f80-42cd-9f9f-6f2f3cb7f605":{"description":"Service Unavailable. Transit schedule unavailable.","content":{"_mintlify/placeholder":{"schema":{"type":"object","description":""}}}}},"security":{"f9b43ca2-6339-4a5a-8a0b-5b2947d92bd7":{"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"}},"33343edf-3236-4fda-b98d-ecb77c063a0a":{"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 Service Delivery - SWITCH","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-11-30T13:22:53.253Z","originalFileLocation":"api-reference/transit-analytics/get-transit-service-delivery.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=\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line. Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too. 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 Service Delivery - SWITCH\">\u003cmeta data-mint-head property=\"og:description\" content=\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line. Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too. 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-service-delivery\">\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+Service+Delivery\u0026amp;description=Scheduled+versus+operated+trips+of+a+transit+network+over+a+period.+A+scheduled+trip+counts+as+operated+when+realtime+data+shows+it+ran%3B+otherwise+it+is+%60cancel\u0026amp;theme=532c2210b81102e1993bdf91\u0026amp;signature=b77f07581dd821f300e8b9f0d5dd433b3f3588b006ab54cc4a5bae211dd84605\">\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 Service Delivery - SWITCH\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line. Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too. 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+Service+Delivery\u0026amp;description=Scheduled+versus+operated+trips+of+a+transit+network+over+a+period.+A+scheduled+trip+counts+as+operated+when+realtime+data+shows+it+ran%3B+otherwise+it+is+%60cancel\u0026amp;theme=532c2210b81102e1993bdf91\u0026amp;signature=b77f07581dd821f300e8b9f0d5dd433b3f3588b006ab54cc4a5bae211dd84605\">\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-service-delivery\">\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-service-delivery.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-service-delivery#webpage\",\"url\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery\",\"name\":\"Get Transit Service Delivery\",\"description\":\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line. Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too. 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.253Z\",\"isPartOf\":{\"@id\":\"https://switch-srl.mintlify.app#website\"},\"breadcrumb\":{\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Transit Analytics\",\"item\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-punctuality\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Get Transit Service Delivery\",\"item\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery#apireference\",\"headline\":\"Get Transit Service Delivery\",\"name\":\"Get Transit Service Delivery\",\"description\":\"Scheduled versus operated trips of a transit network over a period. A scheduled trip counts as operated when realtime data shows it ran; otherwise it is cancelled when the feed says so (only some feeds do) or missing (no realtime data: not necessarily cancelled). Returns the totals, the figures by line and by day, headway regularity, the average active fleet by hour, and the missing trips by hour, time band and line. Days with no realtime data at all are left out of every figure (coverage.days_without_data); on days with partial data, trips outside the observed hours are left out too. 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-service-delivery\",\"mainEntityOfPage\":{\"@id\":\"https://switch-srl.mintlify.app/api-reference/transit-analytics/get-transit-service-delivery#webpage\"},\"dateModified\":\"2026-11-30T13:22:53.253Z\",\"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-service-delivery.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","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","description":"Vehicles of your fleet in one location, live from your fleet platform: position, battery, platform status and last activity. Filtering, sorting and pagination (`filter`, `sort`, `limit`, `cursor`) apply to the whole list; follow `next_cursor` while `has_more` is true. The list is cached for up to 30 seconds.\n\nIntegrations talk to the fleet platform your company is linked to (for example Wunder, ATOM or an MDS feed) and return its data in one common format, whatever the platform. They need a fleet integration configured for your company; `GET /integrations/availability` shows which kinds of data and operations your platform supports.\n\n**Failure Modes:**\n- **401**: Token is missing or invalid\n- **403**: `access_denied` when your role or API key lacks the permission below\n- **404**: `no_data_binding` (`kind: fleet`) when no fleet integration is configured for your company; `no_data_binding` (`kind: location`) when `location` is not one of its locations\n- **422**: Invalid parameters, or your fleet platform does not support this (`Unknown provider: ...`)\n- **502**: The fleet platform returned an error (`Upstream provider error: ...`)\n\n**Required Auth Scopes:**\n- `integrations:vehicles:read`","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 Service Delivery - 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"]}