Package de.westnordost.osmapi.overpass
Interface MapDataWithGeometryHandler
-
public interface MapDataWithGeometryHandlerThis class is fed the map data and geometry.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidhandle(de.westnordost.osmapi.map.data.BoundingBox bounds)The global bounding box has been parsed.voidhandle(de.westnordost.osmapi.map.data.Node node)A node has been parsed.voidhandle(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.voidhandle(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 waybounds- bounding box for the waygeometry- 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 relationbounds- bounding box for the relationnodeGeometries- a map of node id to position for all nodes that are member of this relationwayGeometries- a map of way id to a list of positions the way consists of for all ways that are member of this relation
-
-