tesla-images
v1.6.1
Published
Generate Tesla Model S/3/X/Y 3D photo visualizations
Downloads
40
Maintainers
Readme
Generate Tesla Model S/3/X/Y 3D photo visualizations.
Install
$ npm install tesla-images --save
Usage
There are two ways for getting Tesla stock images:
- Tesla sells some vehicles under CPO terms and they have real pictures of it.
- Tesla has an internal API for generating a 3D visualization of any vehicle (used by their website).
This library combines both techniques providers, fallbacking one in the other one in case stock images are missing (that is the most probable thing).
const teslaImages = require('tesla-images')
;(async () => {
const images = await teslaImages({
vin: '5YJSA7H21FF084652',
modelLetter: 'S',
optionCodes: ['ADPX2', 'AU01', 'DA02', 'APH1', 'APD2', 'X028']
})
})()
License
tesla-images © Tesla Hunt, Released under the MIT License. Authored and maintained by Tesla Hunt with help from contributors.
teslahunt.io · GitHub teslahunt · Twitter @teslahuntio