Class PointOfInterest


  • public class PointOfInterest
    extends java.lang.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 Detail

      • PointOfInterest

        public PointOfInterest​(long id,
                               double latitude,
                               double longitude,
                               java.lang.String name,
                               PoiCategory category)
      • PointOfInterest

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

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • getCategories

        public java.util.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 java.lang.String getName()
        Returns:
        name of this point of interest at default locale
      • getName

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

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object