Skip to content

Commit

Permalink
Tokenize bike parking vertices. #865.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattwigway committed Dec 19, 2012
1 parent 90707db commit 7be64cc
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -22,6 +22,7 @@ the License, or (at your option) any later version.
import org.opentripplanner.routing.graph.Edge;
import org.opentripplanner.routing.graph.Vertex;
import org.opentripplanner.routing.location.StreetLocation;
import org.opentripplanner.routing.vertextype.BikeParkingVertex;
import org.opentripplanner.routing.vertextype.BikeRentalStationVertex;
import org.opentripplanner.routing.vertextype.OffboardVertex;
import org.opentripplanner.routing.vertextype.OnboardVertex;
Expand Down Expand Up @@ -94,6 +95,8 @@ public int terminalFor(State state) {
return STATION;
if (v instanceof BikeRentalStationVertex)
return StreetEdge.CLASS_OTHERPATH;
if (v instanceof BikeParkingVertex)
return StreetEdge.CLASS_OTHERPATH;
else
throw new RuntimeException("failed to tokenize path");
}
Expand Down

0 comments on commit 7be64cc

Please sign in to comment.