API/client to the official Czech police database of stolen vehicles
Install
npm install --save policecz-vehicles-client
Usage
The client library provides following methods and returns always a Promise instance.
search(string)
finds vehicle by either VIN or Registration Number.
Example usage:
var client = ; client ;
Response format
Response contains three components:
- results - array of found entries
- count - number of entries
- time - when the request was processed / iso format
results: id: 987654321 class: 'osobní vozidlo' manufacturer: 'AUDI' type: 'RS 6' color: 'červená metalíza' regno: '9Q91234' rpw: 'CZ' vin: 'WUAMMM4F58N901800' engine: 'ABC123DEF' productionyear: '2008' stolendate: '1.3.2012' url: 'http://aplikace.policie.cz/patrani-vozidla/Detail.aspx?id=987654321' count: 1 time: '2016-03-07T09:37:41.668Z'