A Swift Cocoa Pod to find car registration information from a license plate
Shell Swift Ruby Objective-C
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CarRegistrationPod
Example
.gitignore
.swift-version
.travis.yml
CarRegistrationPod.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

CarRegistrationPod

CI Status Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

A wrapper for the Car Registration API in Swift. You will require a username and password from http://www.vehicleregistrationapi.com This API returns car details from a car number plate in many countries worldwide, including the UK, USA, Australia, India. A full list is shown below.

Installation

CarRegistrationPod is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CarRegistrationPod"

Usage

import CarRegistrationPod
...
let dict = australia_lookup(registrationNumber: "YHC14Y", state: "NSW", username:"***your username***", password:"*** password ***")

label.text = dict["Description"] as? String

Other members of the car_registration package are

  • australia_lookup
  • usa_lookup
  • europe_lookup

Both australia and usa accept four parameters, registrationNumber, state, username and password, and returns a [String: Any] europe_lookup does not require the state parameter, but instead, requires a endpoint parameter, which can be one of the following strings;

  • Check (UK)
  • CheckBelgium
  • CheckCroatia
  • CheckCzechRepublic
  • CheckDenmark
  • CheckEstonia
  • CheckFinland
  • CheckFrance
  • CheckHungary
  • CheckIndia
  • CheckIreland
  • CheckItaly
  • CheckNetherlands
  • CheckNewZealand
  • CheckNigeria
  • CheckNorway
  • CheckPortugal
  • CheckRussia
  • CheckSlovakia
  • CheckSouthAfrica
  • CheckSpain
  • CheckSriLanka
  • CheckSweden
  • CheckUAE
  • CheckUSA
  • CheckAustralia

Author

Infinite loop Development ltd, http://www.infiniteloop.ie

License

CarRegistrationPod is available under the MIT license. See the LICENSE file for more info.