Page Summary
-
This documentation details the
LatLngandMoneymessage types used in the Routes Preferred API. -
LatLngobjects represent geographical coordinates with latitude and longitude values conforming to the WGS84 standard. -
Moneyobjects represent monetary values using a three-letter currency code, whole units, and nano units for precision.
Index
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]. |
Money
Represents an amount of money with its currency type.
| Fields | |
|---|---|
currency_ |
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 |