AI-generated Key Takeaways
- 
          The GMSNavigationLicensePlateRestrictionclass helps in routing by considering license plate restrictions.
- 
          It stores the last digit of the license plate and the country code. 
- 
          Currently supports restrictions in Indonesia (ID) and Brazil (BZ). 
- 
          Use initWithLicensePlateLastDigit:countryCode:to create an instance and set restriction details.
- 
          Access countryCodeandlastDigitproperties to retrieve the stored values.
GMSNavigationLicensePlateRestriction
@interface GMSNavigationLicensePlateRestriction : NSObjectA class contains information for license plate restriction. It maintains the state of vehicle’s license plate information and restriction.
- 
                  
                  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. DeclarationSwift init?(licensePlateLastDigit lastDigit: Int, countryCode: String)Objective-C - (nullable instancetype)initWithLicensePlateLastDigit:(NSInteger)lastDigit countryCode: (nonnull NSString *)countryCode;ParameterslastDigitthe 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. Return Valuenilif license plate’s last digit or country code is invalid.
- 
                  
                  Returns the country code for license plate restriction set by a user. Defaults to empty string. DeclarationSwift var countryCode: String { get }Objective-C @property (nonatomic, readonly) NSString *_Nonnull countryCode;
- 
                  
                  Returns the last digit of vehicle’s license plate number. Defaults to -1. DeclarationSwift var lastDigit: Int { get }Objective-C @property (nonatomic, readonly) NSInteger lastDigit;