Package com.google.genai.types
Class LatLng
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.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.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic LatLng.Builder
builder()
Instantiates a builder for LatLng.static LatLng
Deserializes a JSON string to a LatLng object.latitude()
The latitude in degrees.The longitude in degrees.abstract LatLng.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
LatLng
public LatLng()
-
-
Method Details
-
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] -
builder
Instantiates a builder for LatLng. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a LatLng object.
-