Class 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.GenericJson
    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.

    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
      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      LatLng()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LatLng clone()  
      java.lang.Double getLatitude()
      The latitude in degrees.
      java.lang.Double getLongitude()
      The longitude in degrees.
      LatLng set​(java.lang.String fieldName, java.lang.Object value)  
      LatLng setLatitude​(java.lang.Double latitude)
      The latitude in degrees.
      LatLng setLongitude​(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
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Constructor Detail

      • LatLng

        public LatLng()
    • 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 null for 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 or null for none
      • getLongitude

        public java.lang.Double getLongitude()
        The longitude in degrees. It must be in the range [-180.0, +180.0].
        Returns:
        value or null for 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 or null for none
      • set

        public LatLng set​(java.lang.String fieldName,
                          java.lang.Object value)
        Overrides:
        set in class com.google.api.client.json.GenericJson
      • clone

        public LatLng clone()
        Overrides:
        clone in class com.google.api.client.json.GenericJson