Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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.
    • Constructor Detail

      • MapReadResult

        public MapReadResult()
    • Method Detail

      • add

        public void add​(MapReadResult other,
                        boolean deduplicate)
        Adds other MapReadResult by combining pois and ways. Optionally, deduplication can be requested (much more expensive).
        Parameters:
        other - the MapReadResult to add to this.
        deduplicate - true if check for duplicates is required.