Class LatLng


public abstract class LatLng extends JsonSerializable
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.

  • Constructor Details

    • LatLng

      public LatLng()
  • Method Details

    • latitude

      public abstract Optional<Double> latitude()
      The latitude in degrees. It must be in the range [-90.0, +90.0].
    • longitude

      public abstract Optional<Double> longitude()
      The longitude in degrees. It must be in the range [-180.0, +180.0]
    • builder

      public static LatLng.Builder builder()
      Instantiates a builder for LatLng.
    • toBuilder

      public abstract LatLng.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LatLng fromJson(String jsonString)
      Deserializes a JSON string to a LatLng object.