Package org.mapsforge.poi.storage
Class PointOfInterest
- java.lang.Object
-
- org.mapsforge.poi.storage.PointOfInterest
-
public class PointOfInterest extends java.lang.ObjectThis 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 Summary
Constructors Constructor Description PointOfInterest(long id, double latitude, double longitude, java.lang.String name, PoiCategory category)PointOfInterest(long id, double latitude, double longitude, java.util.Set<org.mapsforge.core.model.Tag> tags, java.util.Set<PoiCategory> categories)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<PoiCategory>getCategories()PoiCategorygetCategory()longgetId()doublegetLatitude()org.mapsforge.core.model.LatLonggetLatLong()doublegetLongitude()java.lang.StringgetName()java.lang.StringgetName(java.lang.String language)java.util.Set<org.mapsforge.core.model.Tag>getTags()java.lang.StringtoString()
-
-
-
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:
equalsin classjava.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:
LatLongof 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:
toStringin classjava.lang.Object
-
-