license_plate_api_uk 1.0.3 license_plate_api_uk: ^1.0.3 copied to clipboard
This Dart package allows you view details from a license plate of a vehicle registered in the UK
license_plate_api_uk #
A Dart package for looking up technical details on vehicles registered in the UK by their license plate (VRM)
license_plate_api_uk
provides a simple way to find vehicle details from a license plate (registration number)
of a car, motorbike, or HGV registered in the United Kingdom.
This requires a username and password, which is available for free from https://www.regcheck.org.uk
Usage #
A simple usage example:
import 'package:license_plate_api_uk/license_plate_api_uk.dart' as RegCheck;
void main(List<String> arguments) async {
// Usage:
// dart bin/main.dart *VRM* *USERNAME* *PASSWORD*
// Where *VRM* is a UK vehicle registration mark (license plate)
// *USERNAME* and *PASSWORD* are available from https://www.regcheck.org.uk
var vehicle = await RegCheck.LicensePlateUK(arguments[0],arguments[1],arguments[2]);
print('Description: ${vehicle['Description']}');
print('Engine: ${vehicle['EngineSize']['CurrentTextValue']}');
print('Fuel Type: ${vehicle['FuelType']['CurrentTextValue']}');
print('Transmission: ${vehicle['Transmission']['CurrentTextValue']}');
print('Image: ${vehicle['ImageUrl']}');
print('Body Style: ${vehicle['BodyStyle']['CurrentTextValue']}');
print('Colour: ${vehicle['Colour']}');
print('Registration Date: ${vehicle['RegistrationDate']}');
print('Engine Number: ${vehicle['EngineNumber']}');
print('VIN: ${vehicle['VehicleIdentificationNumber']}');
}
which produces the following:
Description: VAUXHALL MOKKA SE
Engine: 1364
Fuel Type: Petrol
Transmission: Automatic
Image: https://www.regcheck.org.uk/image.aspx/@VkFVWEhBTEwgTU9LS0EgU0U=
Body Style: Hatchback
Colour: BLUE
Registration Date: 01/06/2014
Engine Number: A14NET 140580075LUJ
VIN: W0LJD7E85EB690449
Features and bugs #
Please file feature requests and bugs via the website http://www.regcheck.org.uk