Skip to main content

Vehicle Catalog

The vehicle form can auto-fill make, model, generation, and technical data from an offline catalog bundled with torq. It covers cars and (since v1.8.0) motorcycles. Lookups never leave your server and require no API key. Every field also accepts free text, so unlisted vehicles, imports, and engine swaps can always be saved.

HSN/TSN quick-fill​

Enter the manufacturer and type key from a German registration certificate (Zulassungsbescheinigung Teil I, fields 2.1 and 2.2) to populate make and model. If multiple variants share a key, torq lets you pick the right one. Undo reverts the fill. This works for both cars and motorcycles.

Cars: Make → Model → Chassis code → Engine​

The searchable dropdowns cascade down to the engine; picking an engine fills engine code, power, displacement, and fuel type.

  • Localized model names: Model names follow your interface language (e.g. C-Class in English, C-Klasse in German).
  • Chassis codes: Generations show chassis codes where known (e.g. W203, S203, E46, Golf IV (1J), Astra H) alongside body style and production years for Mercedes-Benz, BMW, Volkswagen, Audi, Porsche, and Opel. Other makes show production years.

Motorcycles: Make → Model → Version​

When the vehicle type is set to Motorcycle, the catalog lists only motorcycle makes and models. Motorcycles skip generations: the step after the model lists its versions with displacement, power, and first-registration years (for example, 821 cm³ · 82 kW · 2015–2020). Picking a version fills displacement, power, and fuel type. See Motorcycles.

The motorcycle catalog is built from Dutch registration data, which covers almost every model sold in Europe. Model names are cleaned up (duplicate spellings merged, power suffixes such as (74 KW) turned into versions), though a few models appear under their registered type code (e.g. Yamaha MTN690).

Suggesting catalog corrections

Chassis codes are maintained in chassis.txt and motorcycle name fixes live in motorcycles.txt. Corrections and additions are welcome as pull requests in the main repository.

Updating the catalog​

The catalog is imported into SQLite on first start and whenever a torq upgrade bundles newer data. Administrators can also refresh it online under Settings → About & data sources → Update now:

  1. torq downloads the current KBA FZ 6 list, the latest vehicle-makes-models data, and the RDW motorcycle summary (via RDW's public CSV export, about 50 small requests).
  2. It rebuilds the catalog and swaps it in a single transaction — lookups continue working during the update, and a failed update leaves the existing catalog untouched.

Online catalog updates persist across container restarts until a newer torq release bundles newer data. Set TORQ_CATALOG_ONLINE_UPDATES=false to hide the button and keep torq completely offline.

Data sources and licenses​

SourceCoverageLicense
KBA FZ 6 (Kraftfahrt-Bundesamt)HSN/TSN manufacturer and type keysDatenlizenz Deutschland – Namensnennung – Version 2.0 (dl-de/by-2-0)
vehicle-makes-models (gor3a, compiled from autoevolution.com)Car makes, models, years, enginesOpen Database License 1.0 (ODbL 1.0)
RDW Open Data (Dutch vehicle authority)Motorcycle makes, models, versions (Gekentekende_voertuigen & brandstof)Public Domain

The combined catalog is distributed under ODbL 1.0. Full attributions, retrieval dates, and transformations are documented in NOTICE.md and inside the app under Settings → About & data sources.

Why HSN/TSN doesn't fill kW and cm³

The KBA's SV 4.2 directory (which maps HSN/TSN to power, displacement, and fuel) is published as "all rights reserved" and cannot be bundled. That is why HSN/TSN fills make and model only, while technical specs come from the engine/version picker or your own input.