Class Location

java.lang.Object
io.goobi.viewer.model.maps.Location
All Implemented Interfaces:
Serializable

public class Location extends Object implements Serializable
A location on a map. Contains a long/lat points, a label and a link
Author:
Florian Alpers
See Also:
  • Constructor Details

    • Location

      public Location(IArea area, String label, URI uri)
      Parameters:
      area - geographic area of the location
      label - display label for the location
      uri - URI linking to the associated record or resource
  • Method Details

    • getRecordURI

      public static URI getRecordURI(String pi, PageType pageType, IURLBuilder urlBuilder)
      Parameters:
      pi - persistent identifier of the record
      pageType - viewer page type for the generated URI
      urlBuilder - If not null, the URL will be build using the URL builder, otherwise manually
      Returns:
      URI
    • getArea

      public IArea getArea()
    • getLabel

      public String getLabel()
    • getLink

      public URI getLink()
    • getGeoJson

      public String getGeoJson()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object