Skip to content
On this page

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

Module: api/endpoints/GetMakesForVehicleType

Table of contents

Type Aliases

Functions

Type Aliases

GetMakesForVehicleTypeResults

Ƭ GetMakesForVehicleTypeResults: Object

Objects found in the Results array of GetMakesForVehicleType endpoint response.

Type declaration

NameType
MakeIdnumber
MakeNamestring
VehicleTypeIdnumber
VehicleTypeNamestring

Defined in

api/endpoints/GetMakesForVehicleType.ts:73

Functions

GetMakesForVehicleType

GetMakesForVehicleType(typeName, doFetch?): Promise<NhtsaResponse<GetMakesForVehicleTypeResults>>

💡 More Information

See: GetMakesForVehicleType Documentation

GetMakesForVehicleType 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.

typeName can be a partial name, or a full name for more specificity, e.g., "Vehicle", "Moto", "Low Speed Vehicle", etc.

Parameters

NameTypeDescription
typeNamestringA partial or full vehicle type name
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetMakesForVehicleTypeResults>>

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

Defined in

api/endpoints/GetMakesForVehicleType.ts:27

GetMakesForVehicleType(typeName, doFetch): Promise<string>

Parameters

NameType
typeNamestring
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetMakesForVehicleType.ts:32

Released under the MIT License.