public class GraphBuilderParameters extends Object
These used to be command line parameters, but there were getting to be too many of them and besides, we want to allow different graph builder configuration for each Graph.
TODO maybe have only one giant config file and just annotate the parameters to indicate which ones trigger a rebuild ...or just feed the same JSON tree to two different classes, one of which is the build configuration and the other is the router configuration.
Modifier and Type | Field and Description |
---|---|
boolean |
areaVisibility
Perform visibility calculations on OSM areas (these calculations can be time consuming).
|
boolean |
banDiscouragedBiking
This field indicates whether bicycling should be allowed on OSM ways
tagged with "bicycle=discouraged".
|
boolean |
banDiscouragedWalking
This field indicates whether walking should be allowed on OSM ways
tagged with "foot=discouraged".
|
CustomNamer |
customNamer
A custom OSM namer to use.
|
S3BucketConfig |
elevationBucket
If specified, download NED elevation tiles from the given AWS S3 bucket.
|
double |
elevationUnitMultiplier
Unit conversion multiplier for elevation values.
|
boolean |
embedRouterConfig
Embed the Router config in the graph, which allows it to be sent to a server fully configured over the wire.
|
Boolean |
extraEdgesStopPlatformLink
This will add extra edges when linking a stop to a platform, to prevent detours along the platform edge.
|
FareServiceFactory |
fareServiceFactory
A specific fares service to use.
|
boolean |
fetchElevationUS
Download US NED elevation data and apply it to the graph.
|
boolean |
htmlAnnotations
Generates nice HTML report of Graph errors/warnings (annotations).
|
boolean |
matchBusRoutesToStreets
Based on GTFS shape data, guess which OSM streets each bus runs on to improve stop linking.
|
int |
maxHtmlAnnotationsPerFile
If number of annotations is larger then specified number annotations will be split in multiple files.
|
int |
maxInterlineDistance
Maximal distance between stops in meters that will connect consecutive trips that are made with same vehicle
|
double |
maxTransferDistance
Transfers up to this length in meters will be pre-calculated and included in the Graph.
|
boolean |
parentStopLinking
Link GTFS stops to their parent stops.
|
boolean |
platformEntriesLinking
Link unconnected entries to public transport platforms.
|
int |
pruningThresholdIslandWithoutStops
This field indicates the pruning threshold for islands without stops.
|
int |
pruningThresholdIslandWithStops
This field indicates the pruning threshold for islands with stops.
|
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.
|
boolean |
stationTransfers
Create direct transfers between the constituent stops of each parent station.
|
StopClusterMode |
stopClusterMode
Stop clusters can be built in one of two ways, either by geographical proximity and name, or
according to a parent/child station topology, if it exists.
|
boolean |
streets
Include street input files (OSM/PBF).
|
double |
subwayAccessTime
Minutes necessary to reach stops served by trips on routes of route_type=1 (subway) from the street.
|
boolean |
transit
Include all transit input files (GTFS) from scanned directory.
|
boolean |
useTransfersTxt
Create direct transfer edges from transfers.txt in GTFS, instead of based on distance.
|
WayPropertySetSource |
wayPropertySet
Custom OSM way properties
|
Constructor and Description |
---|
GraphBuilderParameters(com.fasterxml.jackson.databind.JsonNode config)
Set all parameters from the given Jackson JSON tree, applying defaults.
|
public final boolean htmlAnnotations
public final int maxHtmlAnnotationsPerFile
public final boolean transit
public final boolean useTransfersTxt
public final boolean parentStopLinking
public final boolean stationTransfers
public final StopClusterMode stopClusterMode
GraphIndex.clusterByParentStation()
GraphIndex.clusterByProximityAndName()
. This is the default value.public final double subwayAccessTime
public final boolean streets
public final boolean embedRouterConfig
public final boolean areaVisibility
public final boolean platformEntriesLinking
public final boolean matchBusRoutesToStreets
public final boolean fetchElevationUS
public final S3BucketConfig elevationBucket
public final double elevationUnitMultiplier
public final FareServiceFactory fareServiceFactory
public final CustomNamer customNamer
public final WayPropertySetSource wayPropertySet
public boolean staticBikeRental
public boolean staticParkAndRide
public boolean staticBikeParkAndRide
public int maxInterlineDistance
public final int pruningThresholdIslandWithoutStops
public final int pruningThresholdIslandWithStops
public final boolean banDiscouragedWalking
public final boolean banDiscouragedBiking
public final double maxTransferDistance
public final Boolean extraEdgesStopPlatformLink
public GraphBuilderParameters(com.fasterxml.jackson.databind.JsonNode config)
Copyright © 2019. All rights reserved.