We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 428f180 commit 2d934c8Copy full SHA for 2d934c8
data/models.js
@@ -217,7 +217,10 @@ const models = {
217
[2501, 2505]
218
],
219
extra_check: (vehicle) => {
220
- return vehicle.cgm_id.startsWith('TB');
+ const inv_number = vehicle.inv_number;
221
+ const is_zemlyane = vehicle.cgm_id.startsWith('A') && 1010 <= inv_number && inv_number <= 1099;
222
+ const is_tramkar = vehicle.cgm_id.startsWith('TB') && 2501 <= inv_number && inv_number <= 2505;
223
+ return is_zemlyane || is_tramkar;
224
},
225
extras: ['ac', 'low_floor']
226
@@ -358,4 +361,4 @@ export function get_model_name(model) {
358
361
const fuel = model.fuel ?? '';
359
362
const length = model.length ? `(${model.length} m)` : '';
360
363
return [name, fuel, length].filter(x => x).join(' ');
-}
364
+}
0 commit comments