Car Registration #API now available on #Cocoapods #Swift
We’ve just packaged our Swift Module as a Cocoapod, and listed it on Cocoapods.org, you can access the GIT repo here https://github.com/infiniteloopltd/CarRegistrationPod
CarRegistrationPod
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.