Class CoordinateLocation

java.lang.Object
de.digitalcollections.model.geo.CoordinateLocation

public class CoordinateLocation extends Object
Geocoordinates of a subject. For Earth, please note that only WGS84 coordinating system is supported at the moment. see https://de.wikipedia.org/wiki/Geographische_Koordinaten, https://de.wikipedia.org/wiki/World_Geodetic_System_1984
  • Constructor Details

    • CoordinateLocation

      public CoordinateLocation()
    • CoordinateLocation

      public CoordinateLocation(Double latitude, Double longitude, Double altitude, Double precision)
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getAltitude

      public double getAltitude()
      Returns:
      altitude in meters
    • getLatitude

      public double getLatitude()
      Returns:
      latitude in degrees: -90° (Southpole) - 0° (Aequator) - 90° (Northpole)
    • getLongitude

      public double getLongitude()
      Returns:
      longitude in degress: 0° (Greenwich, England), East: positve (max. 180°), West: negative (max 180°)
    • getPrecision

      public double getPrecision()
      see https://www.wikidata.org/wiki/Special:EntityData/Q513.json, https://en.wikipedia.org/wiki/Wikipedia:WikiProject_Geographical_coordinates#Precision_guidelines
      Returns:
      precision of coordinates
    • hashCode

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

      public void setAltitude(double altitude)
    • setLatitude

      public void setLatitude(double latitude)
    • setLongitude

      public void setLongitude(double longitude)
    • setPrecision

      public void setPrecision(double precision)
    • toString

      public String toString()
      Overrides:
      toString in class Object