public class OpenStreetMapModule extends Object implements GraphBuilderModule
Modifier and Type | Class and Description |
---|---|
protected class |
OpenStreetMapModule.Handler |
Modifier and Type | Field and Description |
---|---|
CustomNamer |
customNamer
Allows for arbitrary custom naming of edges.
|
StreetEdgeFactory |
edgeFactory
Allows for alternate PlainStreetEdge implementations; this is intended for users who want to provide more info in PSE than OTP normally keeps
around.
|
boolean |
ignoreWheelchairAccessibility
Ignore wheelchair accessibility information.
|
boolean |
skipVisibility |
boolean |
staticBikeParkAndRide
Whether we should create bike P+R stations from OSM data.
|
boolean |
staticBikeRental
Whether bike rental stations should be loaded from OSM, rather than periodically dynamically pulled from APIs.
|
boolean |
staticParkAndRide
Whether we should create car P+R stations from OSM data.
|
WayPropertySet |
wayPropertySet
WayPropertySet computes edge properties from OSM way data.
|
Constructor and Description |
---|
OpenStreetMapModule() |
OpenStreetMapModule(List<OpenStreetMapProvider> providers)
Construct and set providers all at once.
|
Modifier and Type | Method and Description |
---|---|
void |
buildGraph(Graph graph,
HashMap<Class<?>,Object> extra)
Process whatever inputs were supplied to this module and add the resulting elements to the given graph.
|
void |
checkInputs()
Check that all inputs to the graphbuilder are valid; throw an exception if not.
|
List<String> |
getPrerequisites() |
List<String> |
provides() |
void |
setDefaultWayPropertySetSource(WayPropertySetSource source)
Set the way properties from a
WayPropertySetSource source. |
void |
setProvider(OpenStreetMapProvider provider)
The source for OSM map data
|
void |
setProviders(List<OpenStreetMapProvider> providers)
Multiple sources for OSM map data
|
public boolean skipVisibility
public WayPropertySet wayPropertySet
public CustomNamer customNamer
public boolean ignoreWheelchairAccessibility
public StreetEdgeFactory edgeFactory
public boolean staticBikeRental
public boolean staticParkAndRide
public boolean staticBikeParkAndRide
public OpenStreetMapModule(List<OpenStreetMapProvider> providers)
public OpenStreetMapModule()
public void setProvider(OpenStreetMapProvider provider)
public void setProviders(List<OpenStreetMapProvider> providers)
public void setDefaultWayPropertySetSource(WayPropertySetSource source)
WayPropertySetSource
source.source
- the way properties sourcepublic void buildGraph(Graph graph, HashMap<Class<?>,Object> extra)
GraphBuilderModule
buildGraph
in interface GraphBuilderModule
public void checkInputs()
GraphBuilderModule
checkInputs
in interface GraphBuilderModule
Copyright © 2016. All rights reserved.