Skip to content

Commit

Permalink
Use MultiSPT for bike parking. #865.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwigway committed Dec 19, 2012
1 parent 2d1f506 commit 336b958
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -257,9 +257,10 @@ private ShortestPathTree createShortestPathTree(RoutingRequest opts) {
spt = _shortestPathTreeFactory.create(opts);

if (spt == null) {
// Use MultiShortestPathTree if transit OR bike rental.
// Use MultiShortestPathTree if transit OR bike rental OR bike parking
if (opts.getModes().isTransit() ||
opts.getModes().getWalk() && opts.getModes().getBicycle()) {
opts.getModes().getWalk() && opts.getModes().getBicycle() ||
opts.isNeedToParkBike()) {
spt = new MultiShortestPathTree(opts);
} else {
spt = new BasicShortestPathTree(opts);
Expand Down

0 comments on commit 336b958

Please sign in to comment.