Package org.mapsforge.poi.storage
Class PointOfInterest
java.lang.Object
org.mapsforge.poi.storage.PointOfInterest
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 Summary
ConstructorsConstructorDescriptionPointOfInterest(long id, double latitude, double longitude, String name, PoiCategory category) PointOfInterest(long id, double latitude, double longitude, Set<org.mapsforge.core.model.Tag> tags, Set<PoiCategory> categories) -
Method Summary
-
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
-
getCategories
- Returns:
- all categories of this point of interest.
-
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
- Returns:
- name of this point of interest at default locale
-
getName
- Returns:
- name of this point of interest at preferred language
-
getTags
- Returns:
- tags of this point of interest.
-
toString
-