Class LatLng

java.lang.Object
com.uber.h3core.util.LatLng

public class LatLng
extends Object
Immutable two-dimensional spherical coordinates, in degrees.
  • Field Summary

    Fields
    Modifier and Type Field Description
    double lat
    Latitude (north-south) coordinate in degrees
    double lng
    Longitude (east-west) coordinate in degrees
  • Constructor Summary

    Constructors
    Constructor Description
    LatLng​(double lat, double lng)
    Construct with latitude and longitude
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(Object o)  
    int hashCode()  
    String toString()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • lat

      public final double lat
      Latitude (north-south) coordinate in degrees
    • lng

      public final double lng
      Longitude (east-west) coordinate in degrees
  • Constructor Details

    • LatLng

      public LatLng​(double lat, double lng)
      Construct with latitude and longitude
      Parameters:
      lat - Latitude coordinate
      lng - Longitude coordinate
  • Method Details