This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

node-rdw

0.1.5 • Public • Published

node-rdw Build Status

NPM

NodeJS module to access the RDW Database, searching for Dutch license plate info

var RDWSearch = require('node-rdw'),
    rdwSearch = new RDWSearch();
 
// NORMAL SEARCH WITH CALLBACK, THIS WILL BE DEPRECATED IN THE FUTURE
rdwSearch.searchPlate('71ZXK6', function (err, data) {
    if (err) {
        console.log(err);
        return false;
    }
 
    console.log(JSON.stringify(data, true, 4));
});
 
// SEARCH USING PROMISES
rdwSearch
    .searchPlateDeferred('71ZXK6')
    .then(function (data) {
        // succes
        console.log(JSON.stringify(data, true, 4));
    })
    .fail(function (err) {
        console.log(err);
    });
 
// SEARCH USING THE GENERAL SEARCH METHOD.
rdwSearch.search("Kenteken eq '71ZXK6'")
 
// SEARCH USING AN ARRAY. THIS WILL BE AN 'AND' SEARCH
rdwSearch.search([
    "Hoofdbrandstof eq 'DIESEL'",
    "Catalogusprijs gt 10000"
])

This module searches for Dutch license plate information. It returns either null (no vehicle found) or an object with the information in it. The database comes from the Azure Marketplace, more information (in Dutch) can be found here.

Update August, 2014. Thanks to tvr3000 for reminding me that this service can also output JSON. Previous version parsed XML.

Features

Please check the methods for RDWSearch in Documentation.md. Only RDWSearch is exported, SearchUtils is used internally. Created the documentation using JSDoc. Use grunt build to create the documentation.

History

The history of changes can be found in History.md

Bugs / issues

Please, if you find any bugs, or are a way better developer than I am (as in, you are thinking 'spaghetti' when looking at my code), feel free to create an issue or provide me with some pull requests!

License

Copyright (c) 2013-2013 J.W. Lagendijk <jwlagendijk@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Readme

Keywords

Package Sidebar

Install

npm i node-rdw

Weekly Downloads

1

Version

0.1.5

License

MIT

Last publish

Collaborators

  • j3lte