@shaggytools/nhtsa-api-wrapper - v3.0.4 / Exports / api/endpoints/GetModelsForMake
Module: api/endpoints/GetModelsForMake
Table of contents
Type Aliases
Functions
Type Aliases
GetModelsForMakeResults
Ƭ GetModelsForMakeResults: Object
Objects found in the Results
array of GetModelsForMake
endpoint response.
Type declaration
Name | Type |
---|---|
Make_ID | number |
Make_Name | string |
Model_ID | number |
Model_Name | string |
Defined in
api/endpoints/GetModelsForMake.ts:71
Functions
GetModelsForMake
▸ GetModelsForMake(makeName
, doFetch?
): Promise
<NhtsaResponse
<GetModelsForMakeResults
>>
💡 More Information
GetModelsForMake
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 |
doFetch? | true | Whether to fetch the data or just return the URL (default: true ) |
Returns
Promise
<NhtsaResponse
<GetModelsForMakeResults
>>
Api Response object
Api Response
object
-or- urlstring
ifdoFetch = false
Defined in
api/endpoints/GetModelsForMake.ts:28
▸ GetModelsForMake(makeName
, doFetch
): Promise
<string
>
Parameters
Name | Type |
---|---|
makeName | string |
doFetch | false |
Returns
Promise
<string
>