Free RDW vehicle information
This project gets the public available vehicle information from the Dutch RDW. It makes the following attributes available:
brand
color
number_of_cylinders
cylinder_capacity
number_of_seats
fuel_efficiency_main_road
fuel_efficiency_city
fuel_efficiency_combined
energy_label
BPM
co2_combined
fuel_type
Usage
require "RDW"
@vehicle = RDW::CarInfo.new("9KJT45")
@vehicle.brand #=> FERRARI
@vehicle.energy_label #=> G
@vehicle.color #=> ROOD
@vehicle.BPM #=> 82168
@vehicle.number_of_cylinders #=> 12
Notice
There is a rate limit on this api (50,000 per month), more information can be found here: rdw.nl.
Contributing
- Fork it (
http://github.com/<my-github-username>/rdw/fork
) - Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request