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

Class

GetModelsForMake

api/actions/GetModelsForMake.GetModelsForMake(userConfigopt)

Implemented by NHTSA.

Extends api/Fetch.Fetch.

Constructor

# new GetModelsForMake(userConfigopt)

Parameters:
Name Type Attributes Description
userConfig FetchConfig <optional>

User configuration options to construct the class with.

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

Methods

# async GetModelsForMake(makeName) → {Promise.<GetModelsForMakeResponse>}

This returns the Models in the vPIC dataset for a specified makeName whose Name is LIKE the Make in vPIC Dataset.

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

Vehicle make name.

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

Api Response object.

Promise.<GetModelsForMakeResponse>