public class RepeatedRaptorProfileRouter extends Object
Modifier and Type | Field and Description |
---|---|
String |
banAgency
If not null, completely skip this agency during the calculations.
|
Graph |
graph |
boolean |
includeTimes |
static int |
MAX_DURATION |
RaptorWorkerData |
raptorWorkerData
If this is null we will generate a throw-away raptor data table.
|
ProfileRequest |
request |
int |
stepMinutes |
TimeSurface.RangeSet |
timeSurfaceRangeSet
Three time surfaces for min, max, and average travel time over the given time window.
|
TaskStatistics |
ts |
Constructor and Description |
---|
RepeatedRaptorProfileRouter(Graph graph,
ProfileRequest request)
Deprecated.
|
RepeatedRaptorProfileRouter(Graph graph,
ProfileRequest request,
SampleSet sampleSet)
Make a router to use for making ResultSets.
|
Modifier and Type | Method and Description |
---|---|
gnu.trove.map.TIntIntMap |
findInitialStops(boolean dest,
RaptorWorkerData data)
Find all transit stops accessible by streets around the origin, leaving behind a shortest path tree of the
reachable area in the field preTransitSpt.
|
static RaptorWorkerData |
getRaptorWorkerData(ProfileRequest request,
Graph graph,
SampleSet sampleSet,
TaskStatistics ts)
Create RAPTOR worker data from a graph, profile request and sample set (the last of which may be null
|
ResultEnvelope |
route() |
public static final int MAX_DURATION
public ProfileRequest request
public Graph graph
public int stepMinutes
public TimeSurface.RangeSet timeSurfaceRangeSet
public String banAgency
public RaptorWorkerData raptorWorkerData
public TaskStatistics ts
public boolean includeTimes
@Deprecated public RepeatedRaptorProfileRouter(Graph graph, ProfileRequest request)
public RepeatedRaptorProfileRouter(Graph graph, ProfileRequest request, SampleSet sampleSet)
public ResultEnvelope route()
public gnu.trove.map.TIntIntMap findInitialStops(boolean dest, RaptorWorkerData data)
data
- the raptor data table to use. If this is null (i.e. there is no transit) range is extended,
and we don't care if we actually find any stops, we just want the tree of on-street distances.public static RaptorWorkerData getRaptorWorkerData(ProfileRequest request, Graph graph, SampleSet sampleSet, TaskStatistics ts)
Copyright © 2019. All rights reserved.