Class LatLng
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.rcsbusinessmessaging.v1.model.LatLng
-
- All Implemented Interfaces:
java.lang.Cloneable,java.util.Map<java.lang.String,java.lang.Object>
public final class LatLng extends com.google.api.client.json.GenericJsonAn 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.This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the RCS Business Messaging API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
-
Constructor Summary
Constructors Constructor Description LatLng()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LatLngclone()java.lang.DoublegetLatitude()The latitude in degrees.java.lang.DoublegetLongitude()The longitude in degrees.LatLngset(java.lang.String fieldName, java.lang.Object value)LatLngsetLatitude(java.lang.Double latitude)The latitude in degrees.LatLngsetLongitude(java.lang.Double longitude)The longitude in degrees.-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
-
-
-
Method Detail
-
getLatitude
public java.lang.Double getLatitude()
The latitude in degrees. It must be in the range [-90.0, +90.0].- Returns:
- value or
nullfor none
-
setLatitude
public LatLng setLatitude(java.lang.Double latitude)
The latitude in degrees. It must be in the range [-90.0, +90.0].- Parameters:
latitude- latitude ornullfor none
-
getLongitude
public java.lang.Double getLongitude()
The longitude in degrees. It must be in the range [-180.0, +180.0].- Returns:
- value or
nullfor none
-
setLongitude
public LatLng setLongitude(java.lang.Double longitude)
The longitude in degrees. It must be in the range [-180.0, +180.0].- Parameters:
longitude- longitude ornullfor none
-
set
public LatLng set(java.lang.String fieldName, java.lang.Object value)
- Overrides:
setin classcom.google.api.client.json.GenericJson
-
clone
public LatLng clone()
- Overrides:
clonein classcom.google.api.client.json.GenericJson
-
-