Important: This documentation applies to v2 of this package.
For v3 docs see vpic.shaggytech.com

Class

GetMakesForVehicleType

api/actions/GetMakesForVehicleType.GetMakesForVehicleType(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetMakesForVehicleType(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

View Source api/actions/GetMakesForVehicleType.ts, line 27

Methods

# async GetMakesForVehicleType(typeName) → {Promise.<GetMakesForVehicleTypeResponse>}

This returns all the Makes in the vPIC dataset for a specified vehicle type (typeName), whose name is LIKE the vehicle type name in vPIC Dataset.

  • Vehicle typeName can be a partial name, or a full name for more specificity (e.g., "Vehicle", "Moto", "Low Speed Vehicle", etc.).
Parameters:
Name Type Description
typeName string

A partial or full vehicle type name.

View Source api/actions/GetMakesForVehicleType.ts, line 41

Api Response object.