AI-generated Key Takeaways
-
This document provides specifications for three message types: LatLng, LocalizedText, and Money.
-
LatLng represents geographical coordinates with latitude and longitude, adhering to the WGS84 standard.
-
LocalizedText allows for storing text in different languages using the text content and its corresponding BCP-47 language code.
-
Money is used to represent monetary values using a three-letter currency code, whole units, and nano units for precision.
Index
-
LatLng(message) -
LocalizedText(message) -
Money(message)
LatLng
An object that represents a latitude/longitude pair. This is expressed as a pair of doubles to represent degrees latitude and degrees longitude. Unless specified otherwise, this object must conform to the WGS84 standard . Values must be within normalized ranges.
| Fields | |
|---|---|
latitude
|
The latitude in degrees. It must be in the range [-90.0, +90.0]. |
longitude
|
The longitude in degrees. It must be in the range [-180.0, +180.0]. |
LocalizedText
Localized variant of a text in a particular language.
| Fields | |
|---|---|
text
|
Localized string in the language corresponding to |
language_code
|
The text's BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier . |
Money
Represents an amount of money with its currency type.
| Fields | |
|---|---|
currency_code
|
The three-letter currency code defined in ISO 4217. |
units
|
The whole units of the amount. For example if |
nanos
|
Number of nano (10^-9) units of the amount. The value must be between -999,999,999 and +999,999,999 inclusive. If |

