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

Class

GetVehicleTypesForMake

api/actions/GetVehicleTypesForMake.GetVehicleTypesForMake(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetVehicleTypesForMake(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

# async GetVehicleTypesForMake(makeName) → {Promise.<GetVehicleTypesForMakeResponse>}

This returns all the Vehicle Types in the vPIC dataset for a specified Make, whose name is LIKE the make name in the vPIC Dataset.

  • makeName can be a partial name, or a full name for more specificity (e.g., "Merc", "Mercedes Benz", etc.).
Parameters:
Name Type Description
makeName string

Name of the vehicle make to search.

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

Api Response object.