项目作者: abdelsalamshahlol

项目描述 :
JavaScript library to decode VIN number for Toyota vehicles.
高级语言:
项目地址: git://github.com/abdelsalamshahlol/Toyota-VIN-Decoder-TVD.js.git
创建时间: 2018-11-03T11:37:10Z
项目社区:https://github.com/abdelsalamshahlol/Toyota-VIN-Decoder-TVD.js

开源协议:GNU General Public License v3.0

下载


TVD (Toyota VIN Decoder)

vanilla JS

TVD is a JavaScript library that can be used to decode VIN numbers for Toyota vehicles.

The library provides the following information:

  • World Manufacturer Identifier WMI.
  • Vehicle Descriptor Section VDS.
  • Vehicle Indicator Section VIS.
  • Country of origin.
  • Manufacturer
  • Vehicle type (Truck, SUV, etc.)
  • Body (Sport Van, 4DR Wagon 2WD, etc.)
  • Age in years
  • Engine
  • Series (Applicable for Land Cruisers only)
  • Restraint (Safety equipments in the vehicle)
  • Model/Platform
  • Year
  • Plant

    Installation

To use TVD, just add the script tag in your HTML file.

  1. <script src="vindecoder.min.js" charset="utf-8"></script>

For production environments…

  1. vinDecoder.report("JTEHT05J542053195")

Example

  1. var myVinReport = vinDecoder.report("4T1B11HK7JU026537")
  2. console.log(myVinReport)
  3. /**
  4. {
  5. "vin": "4T1B11HK7JU026537",
  6. "breakdown": {
  7. "WMI": "4T1",
  8. "VDS": "B11HK7",
  9. "VIS": "JU026537"
  10. },
  11. "origin": "USA",
  12. "manufacturer": "Toyota",
  13. "type": "Passenger Car",
  14. "body": "4DR Sedan 2WD / Standard Cab Truck, 4WD, Standard Bed, Full-Size Frame",
  15. "engine": "Unknown engine",
  16. "series": "N/A",
  17. "restraint": "Unknown",
  18. "model": "Camry / Aurion (TRD)",
  19. "year": "2018",
  20. "plant": "Georgetown, KY, US",
  21. "age": 0
  22. }
  23. **/

Development

Want to contribute? Great!

Todos

  • Add support for all Toyota VIN schemes
  • Get more info from the VIN

License

GNU GPL v3