A class contains information for license plate restriction.
It mantains the state of vehicle's license plate information and restriction.
|(nullable instancetype)||- initWithLicensePlateLastDigit:countryCode:|
|Initializes a license plate restriction object. |
|Returns the country code for license plate restriction set by a user. |
|Returns the last digit of vehicle's license plate number. |
Member Function Documentation
|- (nullable instancetype) initWithLicensePlateLastDigit:||(NSInteger)||lastDigit|
Initializes a license plate restriction object.
Set license plate restriction with current vehicle's last digit of license plate and country code. This allows us to route around certain types of road restrictions which are based on license plate number.
Returns nil if license plate's last digit or country code is invalid.
lastDigit the last digit of the current vehicle's license plate. This value must be between 0 and 9. countryCode the country code of the current vehicle's license plate. Currently Indonesia (ID) and Brazil (BZ) are supported.
|- (NSString*) countryCode
Returns the country code for license plate restriction set by a user.
Defaults to empty string.
|- (NSInteger) lastDigit
Returns the last digit of vehicle's license plate number.
Defaults to -1.