Skip to main content

car

This module provides dictionaries of around 150 car brands and over 2,000 car models.

Import

Import either or both of the dictionaries to your project via the require tag:

require: car/carBrandEn.sc
module = sys.zb-common

require: car/carModelEn.sc
module = sys.zb-common

After importing the file, the following becomes available:

Value format

Car brand dictionary

FieldTypeDescription
idNumberBrand ID
nameStringBrand name
countryStringCountry of origin
production_spansArrayProduction spans

The production_spans array contains objects with a required start property and an optional end property denoting the production start and end years respectively.

tip
For example, [{"start": 1974, "end": 1978}, {"start": 2008}] means that the brand production was started in 1974, discontinued in 1978, and renewed in 2008.

Car model dictionary

FieldTypeDescription
nameStringModel name
brand_idNumberThe corresponding brand ID

Entry examples

Car brand dictionary

33;Audi;{"id": 33, "name": "Audi", "country": "Germany", "production_spans": [{"start": 1909}]}
119;Rolls-Royce, Rolls Royce;{"id": 119, "name": "Rolls-Royce", "country": "United Kingdom", "production_spans": [{"start": 1904}]}

Car model dictionary

707;Cadillac Deville,Deville;{"name": "Cadillac Deville", "brand_id": 43}
1845;Peugeot Boxer, Boxer;{"name": "Peugeot Boxer", "brand_id": 110}