Skip to content
pdathPublic

About

New Zealand Police Stolen Vehicle DataBase

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

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('nzpsvdb');

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()

About

New Zealand Police Stolen Vehicle DataBase

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages