nzpsvdb

1.0.0 • Public • Published

nzpsvdb - New Zealand Police Stolen Vehicle DataBase

This node.js javascript module loads the stolen vehicle database from the Internet into memory and then allows you to search for numbers on the NZ Police stolen vehicle database.

The are two functions that are used. The first is load() which loads the database. After this you can call stolen() which you pass a number plate to. It returns true if the vehicle is stolen, false otherwise.

It will be most efficient if load() is called once and then many calls are made to stolen() - such as for camera based automatic licence plate recognition.

Sample code:

var nzpsvdb=require('./index.js');

main = async function() {
	await nzpsvdb.load();

	if (nzpsvdb.stolen('LDT37')) console.log("stolen");
	else console.log("not stolen");

	if (nzpsvdb.stolen('10J39fdfdw')) console.log("stolen");
	else console.log("not stolen");
}
   
main()

Readme

Keywords

none

Package Sidebar

Install

npm i nzpsvdb

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

2.48 kB

Total Files

4

Last publish

Collaborators

  • pdath