GTFS Scorecard

v1.6.1
io.github.ChelseaKR/gtfs-scorecard Checked 1 day ago Published 10 days ago

Read-only GTFS transit feed scorecards: grades, plain-language fixes, and history.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

search_agencies

Search tracked transit agencies by name, id, ISO country, ISO subdivision or subdivision name, legacy state, or letter grade. Returns portable location, grade, score, expiry, and applicable readiness fields.

ParameterTypeDescription
countrystringISO 3166-1 alpha-2 country code, e.g. CA
gradestringLetter grade A-F
limitintegerMax results (default 20)
querystringName fragment or exact agency id
statestringLegacy state/province-name filter; prefer subdivision
subdivisionstringISO 3166-2 code or subdivision name, e.g. CA-ON or Ontario

get_scorecard

An agency's latest scorecard: overall grade, category scores and plain-language summaries, every finding with its fix and effort, top fixes, and NTD GTFS readiness.

ParameterTypeDescription
agency_id *stringAgency slug, e.g. 'unitrans'

national_stats

Legacy United States policy view: NTD GTFS readiness nationally and by state, plus the backwards-compatible covered-corpus stats member. Prefer coverage_stats for geography-neutral totals.

coverage_stats

Coverage-wide quality totals and portable country/subdivision rollups over the feeds this scorecard tracks.

get_history

One feed's dated grade and score history, with every measurement-contract boundary marked. A point marked comparable_with_previous: false was scored under a different rubric, scoring profile, validator, reader archive profile, or measured-category set, and the difference across it is not a change in the feed. Also reports findings that appeared or cleared between the two most recent snapshots, but only when those two are comparable.

ParameterTypeDescription
agency_id *stringAgency slug, e.g. 'unitrans'
limitintegerMax dated points (default and ceiling 120)
sincestringEarliest snapshot date to include, YYYY-MM-DD

explain_finding

The fix recipe for one validator or scorecard notice code, its authoritative rule link, and, when a producing tool is named, that tool's fix path. A code with no written recipe returns the rule link alone and says so; nothing is described beyond what is written.

ParameterTypeDescription
code *stringNotice code, e.g. 'expired_calendar'
toolstringOptional producing-tool key: trillium, gtfs_builder, remix, passio, repo, or archive

get_rollup

One program rollup: the cohort's shared fixes, grade distribution, and the members needing attention. Shared fixes describe work many feeds share; they are not a ranking of agencies.

ParameterTypeDescription
rollup_id *stringRollup id, e.g. 'california'

get_evidence_packet

The deterministic vendor remediation packet for one agency's latest scorecard: the producer contract, the work items with their acceptance tests, and the feed identity they were measured against.

ParameterTypeDescription
agency_id *stringAgency slug, e.g. 'unitrans'

coverage_for

Covered-set totals for one ISO country, or one subdivision inside it. A place this scorecard does not track is reported as not covered rather than as zero feeds: absence of coverage is not absence of transit data.

ParameterTypeDescription
country *stringISO 3166-1 alpha-2 country code, e.g. US
subdivisionstringOptional ISO 3166-2 code or subdivision name