Class PointOfInterest

java.lang.Object
org.mapsforge.poi.storage.PointOfInterest

public class PointOfInterest extends Object
This class represents a point of interest. Every POI should be uniquely identifiable by its id, so that for two POIs a and b, a.equals(b) if and only if a.id == b.id.
  • Constructor Details

    • PointOfInterest

      public PointOfInterest(long id, double latitude, double longitude, String name, PoiCategory category)
    • PointOfInterest

      public PointOfInterest(long id, double latitude, double longitude, Set<org.mapsforge.core.model.Tag> tags, Set<PoiCategory> categories)
  • Method Details

    • equals

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

      public Set<PoiCategory> getCategories()
      Returns:
      all categories of this point of interest.
    • getCategory

      public PoiCategory getCategory()
      Returns:
      category of this point of interest.
    • getId

      public long getId()
      Returns:
      id of this point of interest.
    • getLatitude

      public double getLatitude()
      Returns:
      latitude of this point of interest.
    • getLatLong

      public org.mapsforge.core.model.LatLong getLatLong()
      Returns:
      LatLong of this point of interest.
    • getLongitude

      public double getLongitude()
      Returns:
      longitude of this point of interest
    • getName

      public String getName()
      Returns:
      name of this point of interest at default locale
    • getName

      public String getName(String language)
      Returns:
      name of this point of interest at preferred language
    • getTags

      public Set<org.mapsforge.core.model.Tag> getTags()
      Returns:
      tags of this point of interest.
    • toString

      public String toString()
      Overrides:
      toString in class Object