license_plate_api_uk 1.0.3 copy "license_plate_api_uk: ^1.0.3" to clipboard
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

example/main.dart

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']}');
}
1
likes
40
points
13
downloads

Publisher

verified publisherinfiniteloop.ie

Weekly Downloads

This Dart package allows you view details from a license plate of a vehicle registered in the UK

Homepage

License

Apache-2.0 (license)

Dependencies

http

More

Packages that depend on license_plate_api_uk