Package com.uber.h3core.util
Class LatLng
java.lang.Object
com.uber.h3core.util.LatLng
public class LatLng
extends java.lang.Object
Immutable two-dimensional spherical coordinates, in degrees.
-
Field Summary
-
Constructor Summary
Constructors Constructor Description LatLng(double lat, double lng)
Construct with latitude and longitude -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Field Details
-
lat
public final double latLatitude (north-south) coordinate in degrees -
lng
public final double lngLongitude (east-west) coordinate in degrees
-
-
Constructor Details
-
LatLng
public LatLng(double lat, double lng)Construct with latitude and longitude- Parameters:
lat
- Latitude coordinatelng
- Longitude coordinate
-
-
Method Details
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-