GMSNavigationLicensePlateRestriction Class Reference

GMSNavigationLicensePlateRestriction Class Reference

Overview

A class contains information for license plate restriction.

It mantains the state of vehicle's license plate information and restriction.

Public Member Functions

(nullable instancetype) - initWithLicensePlateLastDigit:countryCode:
 Initializes a license plate restriction object.

Properties

NSString * countryCode
 Returns the country code for license plate restriction set by a user.
NSInteger lastDigit
 Returns the last digit of vehicle's license plate number.

Member Function Documentation

- (nullable instancetype) initWithLicensePlateLastDigit: (NSInteger)  lastDigit
countryCode: (NSString *)  countryCode 

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.

Parameters:
lastDigitthe last digit of the current vehicle's license plate. This value must be between 0 and 9.
countryCodethe country code of the current vehicle's license plate. Currently Indonesia (ID) and Brazil (BZ) are supported.

Property Documentation

- (NSString*) countryCode [read, assign]

Returns the country code for license plate restriction set by a user.

Defaults to empty string.

- (NSInteger) lastDigit [read, assign]

Returns the last digit of vehicle's license plate number.

Defaults to -1.