Skip to content

v0.0.3a (Breaking)

Compare
Choose a tag to compare
@amattu2 amattu2 released this 22 Jul 18:11
· 19 commits to master since this release
ad3011d

This is a major (breaking) change to the way NHTSA::decodeVIN returns the result. Instead of using the NHTSA "Variable Name", the "Variable ID" is used, which makes decoding and finding certain variables easier. Additionally, the Value ID is preserved for later use.

Old Design:

[] => Array
(
   ["Make"] => "DODGE"

  ...

)

New Design:

[] => Array

   ... 

   [26] => Array
   (
      [Variable] => Make
      [Value] => DODGE
      [ValueId] => 476
   )
 
   ...
)

Additionally, this includes a substantial improvement for decoding Engine and Trim values, with additional features such a Fuel Type. Two new functions were introduced, both for parsing the aforementioned attributes (Engine/Trim).