Package org.mapsforge.map.datastore
Class MapReadResult
- java.lang.Object
-
- org.mapsforge.map.datastore.MapReadResult
-
public class MapReadResult extends java.lang.Object
An immutable container for the data returned from a MapDataStore.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
isWater
True if the read area is completely covered by water, false otherwise.java.util.List<PointOfInterest>
pointOfInterests
The read POIs.java.util.List<Way>
ways
The read ways.
-
Constructor Summary
Constructors Constructor Description MapReadResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(MapReadResult other, boolean deduplicate)
Adds other MapReadResult by combining pois and ways.void
add(PoiWayBundle poiWayBundle)
-
-
-
Field Detail
-
isWater
public boolean isWater
True if the read area is completely covered by water, false otherwise.
-
pointOfInterests
public java.util.List<PointOfInterest> pointOfInterests
The read POIs.
-
ways
public java.util.List<Way> ways
The read ways.
-
-
Method Detail
-
add
public void add(PoiWayBundle poiWayBundle)
-
add
public void add(MapReadResult other, boolean deduplicate)
Adds other MapReadResult by combining pois and ways. Optionally deduplication can be requested (more expensive).- Parameters:
other
- the MapReadResult to add to this.deduplicate
- true if check for duplicates is required.
-
-