Interface MapDataWithGeometryHandler


  • public interface MapDataWithGeometryHandler
    This class is fed the map data and geometry.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void handle​(de.westnordost.osmapi.map.data.BoundingBox bounds)
      The global bounding box has been parsed.
      void handle​(de.westnordost.osmapi.map.data.Node node)
      A node has been parsed.
      void handle​(de.westnordost.osmapi.map.data.Relation relation, de.westnordost.osmapi.map.data.BoundingBox bounds, java.util.Map<java.lang.Long,​de.westnordost.osmapi.map.data.LatLon> nodeGeometries, java.util.Map<java.lang.Long,​java.util.List<de.westnordost.osmapi.map.data.LatLon>> wayGeometries)
      A relation and its geometry has been parsed.
      void handle​(de.westnordost.osmapi.map.data.Way way, de.westnordost.osmapi.map.data.BoundingBox bounds, java.util.List<de.westnordost.osmapi.map.data.LatLon> geometry)
      A way and its geometry has been parsed.
    • Method Detail

      • handle

        void handle​(@NotNull
                    de.westnordost.osmapi.map.data.BoundingBox bounds)
        The global bounding box has been parsed.
        Parameters:
        bounds - the parsed node
      • handle

        void handle​(@NotNull
                    de.westnordost.osmapi.map.data.Node node)
        A node has been parsed.
        Parameters:
        node - the parsed node
      • handle

        void handle​(@NotNull
                    de.westnordost.osmapi.map.data.Way way,
                    @NotNull
                    de.westnordost.osmapi.map.data.BoundingBox bounds,
                    @NotNull
                    java.util.List<de.westnordost.osmapi.map.data.LatLon> geometry)
        A way and its geometry has been parsed.
        Parameters:
        way - the parsed way
        bounds - bounding box for the way
        geometry - a list of positions the way consists of
      • handle

        void handle​(@NotNull
                    de.westnordost.osmapi.map.data.Relation relation,
                    @NotNull
                    de.westnordost.osmapi.map.data.BoundingBox bounds,
                    @NotNull
                    java.util.Map<java.lang.Long,​de.westnordost.osmapi.map.data.LatLon> nodeGeometries,
                    @NotNull
                    java.util.Map<java.lang.Long,​java.util.List<de.westnordost.osmapi.map.data.LatLon>> wayGeometries)
        A relation and its geometry has been parsed. Note that the geometry of relation members is not included (because the Overpass API does not supply it).
        Parameters:
        relation - the parsed relation
        bounds - bounding box for the relation
        nodeGeometries - a map of node id to position for all nodes that are member of this relation
        wayGeometries - a map of way id to a list of positions the way consists of for all ways that are member of this relation