fix(transit): read Rio speeds as the m/s SMTR publishes

Both SMTR feeds now publish Position.speed in m/s. Compared with how far
vehicles moved between reports on 2026-11-05, the published values ran
3.1x (buses) and 3.6x (BRT) below the observed speed, so the km/h
conversion divided real speeds by 3.6. Drop speedUnit and the conversion.
This commit is contained in:
German Khokhlov committed 2026-11-05 13:48:11 +04:00
1 parent e5dd7c71ac
commit a67c7969fd
7 files changed
+14 -58

No files matched your search

+1 -2
View File
@@ -535,14 +535,13 @@ test('the Rio route table is a clean join of published keys to names', () => {
}
});
test('Rio feeds are CC BY 4.0, live, and declare the km/h speeds they publish', () => {
test('Rio feeds are CC BY 4.0 and live', () => {
for (const id of ['smtr-rio-onibus', 'smtr-rio-brt']) {
const feed = getTransitFeed(id);
assert.equal(feed.defaultEnabled, true, `${id} is live`);
assert.equal(feed.license, 'CC BY 4.0');
assert.match(feed.licenseUrl, /^https:\/\/www\.data\.rio\/documents\//);
assert.match(feed.attribution, /Prefeitura da Cidade do Rio de Janeiro/);
assert.equal(feed.speedUnit, 'kmh', `${id} publishes km/h`);
assert.equal(transitModeFor(feed, null), 'bus');
}
const sources = readFileSync(