Browse files

support getStopId for arrival/departure vertices

  • Loading branch information...
1 parent 889a026 commit 6b730994bb1e0e775c5abaff0cb8f57167d491dc novalis committed Nov 26, 2012
View
5 ...anner-routing/src/main/java/org/opentripplanner/routing/vertextype/TransitStopArrive.java
@@ -13,6 +13,7 @@
package org.opentripplanner.routing.vertextype;
+import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.Stop;
import org.opentripplanner.gtfs.GtfsLibrary;
import org.opentripplanner.routing.graph.Graph;
@@ -31,4 +32,8 @@ public TransitStop getStopVertex() {
return stopVertex;
}
+ @Override
+ public AgencyAndId getStopId() {
+ return stopVertex.getStopId();
+ }
}
View
6 ...anner-routing/src/main/java/org/opentripplanner/routing/vertextype/TransitStopDepart.java
@@ -13,6 +13,7 @@
package org.opentripplanner.routing.vertextype;
+import org.onebusaway.gtfs.model.AgencyAndId;
import org.onebusaway.gtfs.model.Stop;
import org.opentripplanner.gtfs.GtfsLibrary;
import org.opentripplanner.routing.graph.Graph;
@@ -31,4 +32,9 @@ public TransitStopDepart(Graph graph, Stop stop, TransitStop stopVertex) {
public TransitStop getStopVertex() {
return stopVertex;
}
+
+ @Override
+ public AgencyAndId getStopId() {
+ return stopVertex.getStopId();
+ }
}

0 comments on commit 6b73099

Please sign in to comment.