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)
OpenStreetMapContentHandleraddNode in interface OpenStreetMapContentHandlerpublic void addWay(OSMWay way)
OpenStreetMapContentHandleraddWay in interface OpenStreetMapContentHandlerpublic void addRelation(OSMRelation relation)
OpenStreetMapContentHandleraddRelation in interface OpenStreetMapContentHandlerpublic void doneFirstPhaseRelations()
OpenStreetMapContentHandlerdoneFirstPhaseRelations in interface OpenStreetMapContentHandlerpublic void doneSecondPhaseWays()
OpenStreetMapContentHandlerdoneSecondPhaseWays in interface OpenStreetMapContentHandlerpublic void doneThirdPhaseNodes()
doneThirdPhaseNodes in interface OpenStreetMapContentHandlerpublic void postLoad()
Copyright © 2018. All rights reserved.