Class LatLng

java.lang.Object
com.google.cloud.datastore.LatLng
All Implemented Interfaces:
Serializable

public final class LatLng extends Object implements Serializable
A Google Cloud Datastore LatLng (represented by latitude and longitude in degrees). This class is immutable.
See Also:
  • Method Details

    • getLatitude

      public double getLatitude()
      Returns the latitude.
    • getLongitude

      public double getLongitude()
      Returns the longitude.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • of

      public static LatLng of(double latitude, double longitude)
    • toPb

      protected com.google.type.LatLng toPb()