DVLA Data Extractor
This gem allows you to extract data from the DVLA. It currently supports:
- Vehicle Details
Installation
Add this line to your application's Gemfile:
gem 'dvla'
And then execute:
$ bundle
Or install it yourself as:
$ gem install dvla
Usage
Vehicle Details
Dvla::VehicleDetails.retrieve("SP04 UYK", "Mazda")
This should return
{
car_data: {
"Date of Liability"=>"01 11 2013",
"Date of First Registration"=>"16 03 2004",
"Year of Manufacture"=>"2004",
"Cylinder Capacity (cc)"=>"2616cc",
"Emissions"=>"284g/Km",
"Fuel Type"=>"PETROL",
"Export Marker"=>"N",
"Vehicle Status"=>"Licence Not Due",
"Vehicle Colour"=>"YELLOW",
"Vehicle Type Approval"=>"M1"
},
tax_data: {
"6 Months Rate"=>"£154.00",
"12 Months Rate"=>"£280.00"
}
}
Contributing
Contributions are very welcome. To contribute:
- Fork it
- 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
Copyright
Copyright (c) 2013 Jeremy Walker.