Class Coordinate

  • public class Coordinate
    extends Object
    A coordinate is a tuple of a latitude and a longitude.

    If you need to construct a coordinate, use the ofLonLat(double, double) static method.

    • Method Detail

      • ofLonLat

        public static Coordinate ofLonLat​(double lon,
                                          double lat)
        Creates a new Coordinate with a longitude and a latitude.
        lon - the longitude of the coordinate.
        lat - the latitude of the coordinate.
        a new Coordinate.
      • lon

        public double lon()
        Returns the longitude of this coordinate.
      • lat

        public double lat()
        Returns the latitude of this coordinate.