OBATraverseOptions options = createTraverseOptions();
applyConstraintsToOptions(constraints.getConstraints(), options);
Coordinate c = new Coordinate(location.getLon(), location.getLat());
Vertex origin = _streetVertexIndexService.getClosestVertex(c, options);
State originState = new OBAState(time, origin, options);
BasicShortestPathTree tree = _transitShedPathService.getTransitShed(origin,
originState, options);
Map<StopEntry, Long> results = new HashMap<StopEntry, Long>();
for (State state : tree.getAllStates()) {
OBAState obaState = (OBAState) state;
Vertex v = state.getVertex();
if (v instanceof AbstractStopVertex) {
AbstractStopVertex stopVertex = (AbstractStopVertex) v;
StopEntry stop = stopVertex.getStop();
long initialWaitTime = obaState.getInitialWaitTime();