Reference documentation and code samples for the Google Maps FleetEngine V1 Client class LicensePlate.
The license plate information of the Vehicle. To avoid storing
personally-identifiable information, only the minimum information
about the license plate is stored as part of the entity.
Generated from protobuf message maps.fleetengine.v1.LicensePlate
Namespace
Google \ Maps \ FleetEngine \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ country_code
string
Required. CLDR Country/Region Code. For example, US for United States, or IN for India.
↳ last_character
string
The last digit of the license plate or "-1" to denote no numeric value is present in the license plate. * * "ABC 1234" -> "4" * * "AB 123 CD" -> "3" * * "ABCDEF" -> "-1"
getCountryCode
Required. CLDR Country/Region Code. For example, US for United States,
or IN for India.
Returns
Type
Description
string
setCountryCode
Required. CLDR Country/Region Code. For example, US for United States,
or IN for India.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getLastCharacter
The last digit of the license plate or "-1" to denote no numeric value
is present in the license plate.
"ABC 1234" -> "4"
"AB 123 CD" -> "3"
"ABCDEF" -> "-1"
Returns
Type
Description
string
setLastCharacter
The last digit of the license plate or "-1" to denote no numeric value
is present in the license plate.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Maps FleetEngine V1 Client - Class LicensePlate (0.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.4.1 (latest)](/php/docs/reference/maps-fleetengine/latest/V1.LicensePlate)\n- [0.4.0](/php/docs/reference/maps-fleetengine/0.4.0/V1.LicensePlate)\n- [0.3.1](/php/docs/reference/maps-fleetengine/0.3.1/V1.LicensePlate)\n- [0.2.0](/php/docs/reference/maps-fleetengine/0.2.0/V1.LicensePlate)\n- [0.1.6](/php/docs/reference/maps-fleetengine/0.1.6/V1.LicensePlate) \nReference documentation and code samples for the Google Maps FleetEngine V1 Client class LicensePlate.\n\nThe license plate information of the Vehicle. To avoid storing\npersonally-identifiable information, only the minimum information\nabout the license plate is stored as part of the entity.\n\nGenerated from protobuf message `maps.fleetengine.v1.LicensePlate`\n\nNamespace\n---------\n\nGoogle \\\\ Maps \\\\ FleetEngine \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCountryCode\n\nRequired. CLDR Country/Region Code. For example, `US` for United States,\nor `IN` for India.\n\n### setCountryCode\n\nRequired. CLDR Country/Region Code. For example, `US` for United States,\nor `IN` for India.\n\n### getLastCharacter\n\nThe last digit of the license plate or \"-1\" to denote no numeric value\nis present in the license plate.\n\n- \"ABC 1234\" -\\\u003e \"4\"\n- \"AB 123 CD\" -\\\u003e \"3\"\n- \"ABCDEF\" -\\\u003e \"-1\"\n\n### setLastCharacter\n\nThe last digit of the license plate or \"-1\" to denote no numeric value\nis present in the license plate.\n\n- \"ABC 1234\" -\\\u003e \"4\"\n- \"AB 123 CD\" -\\\u003e \"3\"\n- \"ABCDEF\" -\\\u003e \"-1\""]]