public class OSMDatabase extends Object implements OpenStreetMapContentHandler
Modifier and Type | Field and Description |
---|---|
boolean |
noZeroLevels
If true, disallow zero floors and add 1 to non-negative numeric floors, as is generally done
in the United States.
|
Constructor and Description |
---|
OSMDatabase() |
Modifier and Type | Method and Description |
---|---|
void |
addNode(OSMNode node)
Stores a node.
|
void |
addRelation(OSMRelation relation)
Stores a relation.
|
void |
addWay(OSMWay way)
Stores a way.
|
void |
doneFirstPhaseRelations()
Called after the first phase, when all relations are loaded.
|
void |
doneSecondPhaseWays()
Called after the second phase, when all ways are loaded.
|
void |
doneThirdPhaseNodes()
After all relations, ways, and nodes are loaded, handle areas.
|
Collection<GraphBuilderAnnotation> |
getAnnotations() |
Collection<org.opentripplanner.graph_builder.module.osm.Area> |
getBikeParkingAreas() |
Collection<OSMNode> |
getBikeParkingNodes() |
Collection<OSMNode> |
getBikeRentalNodes() |
Collection<org.opentripplanner.graph_builder.module.osm.TurnRestrictionTag> |
getFromWayTurnRestrictions(Long fromWayId) |
OSMLevel |
getLevelForWay(OSMWithTags way) |
OSMNode |
getNode(Long nodeId) |
Collection<org.opentripplanner.graph_builder.module.osm.Area> |
getParkAndRideAreas() |
Collection<OSMNode> |
getStopsInArea(OSMWithTags areaParent) |
Collection<org.opentripplanner.graph_builder.module.osm.TurnRestrictionTag> |
getToWayTurnRestrictions(Long toWayId) |
Collection<Long> |
getTurnRestrictionWayIds() |
Collection<org.opentripplanner.graph_builder.module.osm.Area> |
getWalkableAreas() |
Collection<OSMWay> |
getWays() |
boolean |
isNodeBelongsToWay(Long nodeId) |
boolean |
isNodeSharedByMultipleAreas(Long nodeId) |
void |
postLoad()
After all loading is done (from multiple OSM sources), post-process.
|
public boolean noZeroLevels
public Collection<OSMWay> getWays()
public Collection<OSMNode> getBikeRentalNodes()
public Collection<OSMNode> getBikeParkingNodes()
public Collection<org.opentripplanner.graph_builder.module.osm.Area> getWalkableAreas()
public Collection<org.opentripplanner.graph_builder.module.osm.Area> getParkAndRideAreas()
public Collection<org.opentripplanner.graph_builder.module.osm.Area> getBikeParkingAreas()
public Collection<Long> getTurnRestrictionWayIds()
public Collection<org.opentripplanner.graph_builder.module.osm.TurnRestrictionTag> getFromWayTurnRestrictions(Long fromWayId)
public Collection<org.opentripplanner.graph_builder.module.osm.TurnRestrictionTag> getToWayTurnRestrictions(Long toWayId)
public Collection<OSMNode> getStopsInArea(OSMWithTags areaParent)
public OSMLevel getLevelForWay(OSMWithTags way)
public boolean isNodeSharedByMultipleAreas(Long nodeId)
public boolean isNodeBelongsToWay(Long nodeId)
public Collection<GraphBuilderAnnotation> getAnnotations()
public void addNode(OSMNode node)
OpenStreetMapContentHandler
addNode
in interface OpenStreetMapContentHandler
public void addWay(OSMWay way)
OpenStreetMapContentHandler
addWay
in interface OpenStreetMapContentHandler
public void addRelation(OSMRelation relation)
OpenStreetMapContentHandler
addRelation
in interface OpenStreetMapContentHandler
public void doneFirstPhaseRelations()
OpenStreetMapContentHandler
doneFirstPhaseRelations
in interface OpenStreetMapContentHandler
public void doneSecondPhaseWays()
OpenStreetMapContentHandler
doneSecondPhaseWays
in interface OpenStreetMapContentHandler
public void doneThirdPhaseNodes()
doneThirdPhaseNodes
in interface OpenStreetMapContentHandler
public void postLoad()
Copyright © 2019. All rights reserved.