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:

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Copyright (c) 2013 Jeremy Walker.