-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not All Information available from NHTSA DATA #8
Comments
Mostly because the NHTSA data that's pulled in is to map in to the VIN data model, which has a fairly limited number of data points compared to the NHTSA data model. I'm not sure it makes sense to try and introduce more complexity into the VIN data model given that a lot of this information is not sufficiently generalized (e.g. we don't have an equivalent for European VINs), but I wouldn't be opposed to extending the NHTSA data model and adding new APIs for this if that's something that's going to be useful. |
I think you are right but why not exposing a list entries which hold the
key value pairs and the consumer can figure out what to use or maybe just
showing the list of information.
…On Tue, Aug 24, 2021, 19:36 Paul Mundt ***@***.***> wrote:
Mostly because the NHTSA data that's pulled in is to map in to the VIN
data model, which has a fairly limited number of data points compared to
the NHTSA data model. I'm not sure it makes sense to try and introduce more
complexity into the VIN data model given that a lot of this information is
not sufficiently generalized (e.g. we don't have an equivalent for European
VINs), but I wouldn't be opposed to extending the NHTSA data model and
adding new APIs for this if that's something that's going to be useful.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#8 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AB3BZ22JC2BJVG6OHCVTWO3T6RJKPANCNFSM5CXX2EPA>
.
|
That should be pretty straightforward, we already parse all of the results, they're just not passed through to the upper layers as we truncate explicitly with the call to |
Yes, I did see that. I think that should be the default. Then all data is available. All the other calls like |
Ok, thinking about it a bit more, I came up with a slightly different approach. I'd rather not expose too much knowledge of the underlying NHTSA model within the VIN class, especially as we may end up using other sources for VINs from different geographic regions. As a compromise, I split out the NHTSA API accessors into their own class and exposed a library for this such that you can query it alongside your normal VIN processing code. There are now two methods by which to query the NHTSA data:
I've updated the example to show how to use either of these approaches. |
It seems like there is way more data available from the NHTSA Data. Why is that not decoded?
The text was updated successfully, but these errors were encountered: