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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-15 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eGMSNavigationLicensePlateRestriction\u003c/code\u003e class helps in routing by considering license plate restrictions.\u003c/p\u003e\n"],["\u003cp\u003eIt stores the last digit of the license plate and the country code.\u003c/p\u003e\n"],["\u003cp\u003eCurrently supports restrictions in Indonesia (ID) and Brazil (BZ).\u003c/p\u003e\n"],["\u003cp\u003eUse \u003ccode\u003einitWithLicensePlateLastDigit:countryCode:\u003c/code\u003e to create an instance and set restriction details.\u003c/p\u003e\n"],["\u003cp\u003eAccess \u003ccode\u003ecountryCode\u003c/code\u003e and \u003ccode\u003elastDigit\u003c/code\u003e properties to retrieve the stored values.\u003c/p\u003e\n"]]],["The `GMSNavigationLicensePlateRestriction` class manages vehicle license plate information for routing around restrictions. It's initialized with the license plate's last digit (0-9) and country code (currently supporting \"ID\" for Indonesia and \"BZ\" for Brazil). The class stores and returns the user-set `countryCode` (defaults to empty string) and `lastDigit` (defaults to -1). Initialization returns `nil` if either value is invalid. It is designed to help determine license plate related restrictions.\n"],null,["GMSNavigationLicensePlateRestriction \n\n @interface GMSNavigationLicensePlateRestriction : NSObject\n\nA class contains information for license plate restriction. It maintains the state of vehicle's\nlicense plate information and restriction.\n- `\n ``\n ``\n `\n\n [-initWithLicensePlateLastDigit:countryCode:](#/c:objc(cs)GMSNavigationLicensePlateRestriction(im)initWithLicensePlateLastDigit:countryCode:)`\n ` \n Initializes a license plate restriction object.\n Set license plate restriction with current vehicle's last digit of license plate and country\n code. This allows us to route around certain types of road restrictions which are based on\n license plate number. \n\n Declaration \n Swift \n\n init?(licensePlateLastDigit lastDigit: Int, countryCode: String)\n\n Objective-C \n\n - (nullable instancetype)initWithLicensePlateLastDigit:(NSInteger)lastDigit\n countryCode:\n (nonnull NSString *)countryCode;\n\n Parameters\n\n |---------------------|------------------------------------------------------------------------------------------------------------------|\n | ` `*lastDigit*` ` | the last digit of the current vehicle's license plate. This value must be between 0 and 9. |\n | ` `*countryCode*` ` | the country code of the current vehicle's license plate. Currently Indonesia (ID) and Brazil (BZ) are supported. |\n\n Return Value\n\n `nil` if license plate's last digit or country code is invalid.\n- `\n ``\n ``\n `\n\n [countryCode](#/c:objc(cs)GMSNavigationLicensePlateRestriction(py)countryCode)`\n ` \n Returns the country code for license plate restriction set by a user.\n\n Defaults to empty string. \n\n Declaration \n Swift \n\n var countryCode: String { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSString *_Nonnull countryCode;\n\n- `\n ``\n ``\n `\n\n [lastDigit](#/c:objc(cs)GMSNavigationLicensePlateRestriction(py)lastDigit)`\n ` \n Returns the last digit of vehicle's license plate number.\n\n Defaults to -1. \n\n Declaration \n Swift \n\n var lastDigit: Int { get }\n\n Objective-C \n\n @property (nonatomic, readonly) NSInteger lastDigit;"]]