Skip to content

Commit 89fedd5

Browse files
committed
patch for "XTM" buses
1 parent 0f487a3 commit 89fedd5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/js/cache.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,10 @@ export function add_to_cache(vehicle, tables_to_update, cache) {
9999
return;
100100
}
101101

102+
if(vehicle.type != 'bus' && typeof vehicle.route_ref === 'string' && vehicle.route_ref.endsWith('TM')) {
103+
vehicle.type = 'bus';
104+
}
105+
102106
if(vehicle.route_ref) {
103107
tables_to_update.add(`${vehicle.type}/${vehicle.route_ref}`);
104108
}

0 commit comments

Comments
 (0)