Class GeoLocation

java.lang.Object
io.goobi.viewer.model.misc.GeoLocation

public class GeoLocation extends Object

GeoLocation class.

Author:
Florian Alpers
  • Constructor Details

    • GeoLocation

      public GeoLocation()

      Constructor for GeoLocation.

    • GeoLocation

      public GeoLocation(Double latitude, Double longitude)

      Constructor for GeoLocation.

      Parameters:
      latitude - a Double object.
      longitude - a Double object.
    • GeoLocation

      public GeoLocation(org.json.JSONObject json) throws org.json.JSONException

      Constructor for GeoLocation.

      Parameters:
      json - a JSONObject object.
      Throws:
      org.json.JSONException - if any.
  • Method Details

    • getLatitude

      public Double getLatitude()

      Getter for the field latitude.

      Returns:
      the langitude
    • setLatitude

      public void setLatitude(Double latitude)

      Setter for the field latitude.

      Parameters:
      latitude - a Double object.
    • getLongitude

      public Double getLongitude()

      Getter for the field longitude.

      Returns:
      the longitude
    • setLongitude

      public void setLongitude(Double longitude)

      Setter for the field longitude.

      Parameters:
      longitude - the longitude to set
    • getAsJson

      public org.json.JSONObject getAsJson()

      getAsJson.

      Returns:
      a JSONObject object.
    • isEmpty

      public boolean isEmpty()

      isEmpty.

      Returns:
      true if either latitude or longitude is not set or set to NULL
    • getInfo

      public String getInfo()

      Getter for the field info.

      Returns:
      the info
    • setInfo

      public void setInfo(String info)

      Setter for the field info.

      Parameters:
      info - the info to set
    • getLink

      public String getLink()

      Getter for the field link.

      Returns:
      the link
    • setLink

      public void setLink(String link)

      Setter for the field link.

      Parameters:
      link - the link to set