forked from ChelseaKR/gtfs-scorecard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtry.html
More file actions
192 lines (185 loc) · 10.3 KB
/
Copy pathtry.html
File metadata and controls
192 lines (185 loc) · 10.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Request a one-off score — GTFS Scorecard</title>
<meta name="description"
content="Request a GTFS score through the GitHub-backed path, or run the open-source scorer locally. Hosted instant scoring is not enabled.">
<link rel="canonical" href="https://gtfsscorecard.org/try.html">
<meta property="og:title" content="Request a one-off score — GTFS Scorecard">
<meta property="og:description" content="Request a GTFS score through GitHub or run the scorer locally; hosted instant scoring is not enabled.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://gtfsscorecard.org/try.html">
<meta property="og:image" content="https://gtfsscorecard.org/og.png">
<meta property="og:image:alt" content="GTFS Scorecard: transit data quality for small agencies.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:image" content="https://gtfsscorecard.org/og.png">
<meta name="twitter:image:alt" content="GTFS Scorecard: transit data quality for small agencies.">
<link rel="stylesheet" href="src/styles.css">
<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='13' fill='%23204e3a'/%3E%3Ccircle cx='16' cy='16' r='5' fill='%23f2f3ee'/%3E%3C/svg%3E">
<script>
/* Apply the saved theme before first paint to avoid a flash (1.4.8). */
try {
var t = localStorage.getItem("scorecard-theme");
if (t && ["light", "contrast", "dark"].indexOf(t) >= 0)
document.documentElement.setAttribute("data-theme", t);
} catch (e) {}
</script>
<script src="/src/theme.js" defer></script>
<script src="/src/nav.js" defer></script>
<noscript><style>
/* Without JS the menu button cannot expand the collapsed nav, so show the
stacked nav permanently and hide the button (content stays operable
without scripting). nav.js never runs here, so nothing double-toggles. */
@media (max-width: 1400px) {
.nav-menu-btn { display: none !important; }
.nav-cluster { display: flex !important; position: static; }
}
</style></noscript>
</head>
<body>
<a class="skip-link" href="#main">Skip to main content</a>
<header class="site-header">
<div class="wrap">
<a class="brand" href="/"><span class="brand-mark" aria-hidden="true"></span><span class="brand-name">GTFS Scorecard</span></a>
<button class="nav-menu-btn" type="button" aria-expanded="false" aria-controls="nav-cluster"><span aria-hidden="true">☰</span> Menu</button>
<div class="nav-cluster" id="nav-cluster">
<nav class="nav-stops" aria-label="Primary"><a class="nav-stop" href="/agencies/"><span class="pip" aria-hidden="true"></span>Find an agency</a><a class="nav-stop" href="/pulse/"><span class="pip" aria-hidden="true"></span>Coverage</a><a class="nav-stop" href="/app/#/?view=features"><span class="pip" aria-hidden="true"></span>Feed features</a><a class="nav-stop" href="/tools/"><span class="pip" aria-hidden="true"></span>Tools</a><a class="nav-stop" href="/how-to-read/"><span class="pip" aria-hidden="true"></span>How it works</a><a class="nav-stop" href="/about/"><span class="pip" aria-hidden="true"></span>About</a></nav>
<div id="theme-control"></div>
</div>
</div>
</header>
<main id="main" class="wrap" tabindex="-1">
<a class="backlink" href="/app/">← All agencies</a>
<h1 class="page-title">Request a one-off score.</h1>
<p class="page-lede">Paste a link to any published
<dfn><abbr title="General Transit Feed Specification">GTFS</abbr></dfn> Schedule feed. Hosted
scoring is available through the GitHub-backed request below or by running the scorer
locally. To track a feed over time, <a href="submit.html">add your agency</a>
instead. Not published yet? <a href="/check/">Check the zip before you publish</a>, right in
your browser.</p>
<section class="action-panel" aria-labelledby="how-h">
<h2 class="section-title" id="how-h">Request a full score through GitHub</h2>
<p>This is the available hosted path. A scorer fetches the public feed, runs the
MobilityData validator, and returns the grade and top fixes as a comment.</p>
<ol class="how-list">
<li>Open the request and paste your GTFS Schedule URL.</li>
<li>The automated scorer validates and grades the feed.</li>
<li>The result returns as a comment on the issue, then the request closes.</li>
</ol>
<p class="field">
<a class="submit-button"
href="https://github.com/ChelseaKR/gtfs-scorecard/issues/new?template=score-a-feed.yml">
Request a full score
</a>
</p>
<p class="hint"><strong>GitHub account required.</strong> A free account is enough;
the submitted URL and result will be public on the issue.</p>
</section>
<section id="hosted-scorer" aria-labelledby="form-h" hidden>
<h2 class="section-title" id="form-h">Instant scorer</h2>
<form id="try-form" class="submit-form" novalidate>
<p class="field">
<label for="try-url">GTFS Schedule URL <span class="req">(required)</span></label>
<input id="try-url" name="url" type="url" required
placeholder="https://your-agency.example/google_transit.zip">
</p>
<p class="field">
<label for="try-name">Agency name <span class="hint">(optional, labels the result)</span></label>
<input id="try-name" name="name" type="text" maxlength="200" autocomplete="organization">
</p>
<p class="field">
<label for="try-country">Country or territory code
<span class="req">(required)</span></label>
<input id="try-country" name="country" type="text" required maxlength="2"
pattern="[A-Za-z]{2}" autocomplete="off" autocapitalize="characters"
spellcheck="false" aria-describedby="try-country-hint">
<span class="hint" id="try-country-hint">Use the two-letter ISO code for the
feed's primary location, such as CA, GB, or NZ.</span>
</p>
<p class="field">
<button type="submit" class="submit-button">Score this feed</button>
</p>
<p id="try-status" class="form-status" role="status" aria-live="polite"></p>
</form>
<div id="try-result" hidden></div>
</section>
<section aria-labelledby="cli-h">
<h2 class="section-title" id="cli-h">Prefer the command line?</h2>
<p class="page-lede">Score a feed locally with one command. It needs Java 17 and
<a href="https://docs.astral.sh/uv/">uv</a>; the first run downloads the validator.</p>
<pre class="codeblock" tabindex="0" role="group" aria-label="Command"><code>uvx --from "git+https://github.com/ChelseaKR/gtfs-scorecard#subdirectory=pipeline" \
scorecard try https://your-agency.example/google_transit.zip --html scorecard.html</code></pre>
<p class="hint">To fail a
<abbr title="continuous integration">CI</abbr> build when a feed drops below a grade, use the
<a href="https://github.com/ChelseaKR/gtfs-scorecard/blob/main/docs/ci-action.md">GitHub
Action</a>.</p>
</section>
</main>
<footer class="site-footer">
<div class="wrap">
<div class="footer-intro">
<a class="footer-brand" href="/">GTFS Scorecard</a>
<p>An open-source data quality tool for small and rural transit agencies.</p>
</div>
<nav class="footer-grid" aria-label="Footer">
<section aria-labelledby="footer-find-h">
<h2 id="footer-find-h">Find a scorecard</h2>
<ul>
<li><a href="/agencies/">Agency directory</a></li>
<li><a href="/app/">Interactive search</a></li>
<li><a href="/map/">Agency map</a></li>
<li><a href="/routes/">All routes</a></li>
<li><a href="/compare/">Compare two agencies</a></li>
</ul>
</section>
<section aria-labelledby="footer-improve-h">
<h2 id="footer-improve-h">Improve a feed</h2>
<ul>
<li><a href="/fix/">GTFS errors & fixes</a></li>
<li><a href="/check/">Check before publishing</a></li>
<li><a href="/try.html">Request a one-off score</a></li>
<li><a href="/subscribe.html">Feed-health alerts</a></li>
<li><a href="/submit.html">Add an agency</a></li>
<li><a href="/claim/">Correct or claim a listing</a></li>
<li><a href="/procurement/">Procurement language</a></li>
</ul>
</section>
<section aria-labelledby="footer-explore-h">
<h2 id="footer-explore-h">Explore the data</h2>
<ul>
<li><a href="/pulse/">Coverage overview</a></li>
<li><a href="/problems/">Common problems</a></li>
<li><a href="/realtime/">Realtime quality</a></li>
<li><a href="/adoption/">What feeds publish</a></li>
<li><a href="/focus/">Focus areas</a></li>
<li class="footer-subhead">United States tools</li>
<li><a href="/ntd/">U.S. NTD readiness</a></li>
<li><a href="/equity/">U.S. equity</a></li>
<li><a href="/query/">Query the dataset</a></li>
<li><a href="/data/">Open data</a></li>
</ul>
</section>
<section aria-labelledby="footer-project-h">
<h2 id="footer-project-h">Project</h2>
<ul>
<li><a href="/about/">About</a></li>
<li><a href="/status/">Status</a></li>
<li><a href="/support/">Get help or sponsor</a></li>
<li><a href="/how-to-read/">How to read a scorecard</a></li>
<li><a href="/how-to-read/#glossary">Glossary</a></li>
<li><a href="/crosswalk/">Standards crosswalk</a></li>
<li><a href="/press/">For reporters</a></li>
<li><a href="/accessibility/">Accessibility</a></li>
<li><a href="https://github.com/ChelseaKR/gtfs-scorecard/blob/main/CONTRIBUTING.md">Contribute</a></li>
<li><a href="https://github.com/ChelseaKR/gtfs-scorecard/blob/main/docs/listing-policy.md">Listing & removal policy</a></li>
</ul>
</section>
</nav>
</div>
</footer>
<script src="src/config.js"></script>
<script type="module" src="src/try.js"></script>
</body>
</html>