Vehicle numbers validation
navferty opened this issue · comments
Add validation logic to check VIN-numbers and vehicle registration numbers (like A123BC77 russian vehicle number)
Basic idea is to check with pattern (17 digits and latin letters for VIN, and some patterns for vehicle reg number - like A123BC77, AB12377, AB123477 etc.)
Moreover, some external API can be used to validate. It is important that it should be free and official API, but not parsing HTML or reverse-engineering JS on websites like vincheck.info
Tips for developer:
- https://ru.wikipedia.org/wiki/Регистрационные_знаки_транспортных_средств_в_России
- Here you can get valid or even real VIN number for test purposes
https://randomvin.com/ - Example of loading history of VIN number. Probably we could email them to get free API-key:
https://vincheck.info/check/vin-check.php