Skip to content
On this page

@shaggytools/nhtsa-api-wrapper - v3.0.4 / Exports / api/endpoints/GetVehicleVariableValuesList

Module: api/endpoints/GetVehicleVariableValuesList

Table of contents

Type Aliases

Functions

Type Aliases

GetVehicleVariableValuesListResults

Ƭ GetVehicleVariableValuesListResults: Object

Objects found in the Results array of GetVehicleVariableValuesList endpoint response.

Type declaration

NameType
ElementNamestring
Idnumber
Namestring

Defined in

api/endpoints/GetVehicleVariableValuesList.ts:75

Functions

GetVehicleVariableValuesList

GetVehicleVariableValuesList(variableValue, doFetch?): Promise<NhtsaResponse<GetVehicleVariableValuesListResults>>

GetVehicleVariableValuesList provides a list of all the accepted values for a given variable that are stored in the vPIC dataset.

If variableValue is a string, it must use full name, not just part of it, e.g., "Battery Type", not "Battery"

variableValue can be also be a number, which is the ID of the variable, e.g., 1, 2, 3, etc.

Parameters

NameTypeDescription
variableValuestring | numberThe variable you want to get a values list of
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetVehicleVariableValuesListResults>>

  • Api Response object -or- url string if doFetch = false

Defined in

api/endpoints/GetVehicleVariableValuesList.ts:29

GetVehicleVariableValuesList(variableValue, doFetch): Promise<string>

Parameters

NameType
variableValuestring | number
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetVehicleVariableValuesList.ts:34

Released under the MIT License.