diff --git a/application/src/client/index.html b/application/src/client/index.html index 4d0e989196c..e463c510830 100644 --- a/application/src/client/index.html +++ b/application/src/client/index.html @@ -5,8 +5,8 @@
- * Direct mode only. */ - CAR(Feature.ACCESS, Feature.DRIVING), + CAR(Feature.ACCESS, Feature.TRANSFER, Feature.EGRESS, Feature.DRIVING), /** * Start in the car, drive to a parking area, and walk the rest of the way. *
diff --git a/application/src/main/java/org/opentripplanner/transit/model/network/BikeAccess.java b/application/src/main/java/org/opentripplanner/transit/model/network/BikeAccess.java index 536a01a9b14..c0d850e9ce7 100644 --- a/application/src/main/java/org/opentripplanner/transit/model/network/BikeAccess.java +++ b/application/src/main/java/org/opentripplanner/transit/model/network/BikeAccess.java @@ -1,6 +1,8 @@ package org.opentripplanner.transit.model.network; /** + * This represents the state of whether bikes are allowed on board trips (or routes). + *
* GTFS codes: * 0 = unknown / unspecified, 1 = bikes allowed, 2 = bikes NOT allowed */ diff --git a/application/src/main/java/org/opentripplanner/transit/model/network/CarAccess.java b/application/src/main/java/org/opentripplanner/transit/model/network/CarAccess.java new file mode 100644 index 00000000000..2fca43cfb32 --- /dev/null +++ b/application/src/main/java/org/opentripplanner/transit/model/network/CarAccess.java @@ -0,0 +1,13 @@ +package org.opentripplanner.transit.model.network; + +/** + * This represents the state of whether cars are allowed on board trips. + *
+ * GTFS codes:
+ * 0 = unknown / unspecified, 1 = cars allowed, 2 = cars NOT allowed
+ */
+public enum CarAccess {
+ UNKNOWN,
+ NOT_ALLOWED,
+ ALLOWED,
+}
diff --git a/application/src/main/java/org/opentripplanner/transit/model/timetable/Trip.java b/application/src/main/java/org/opentripplanner/transit/model/timetable/Trip.java
index 53ec7207adc..1a07e96c029 100644
--- a/application/src/main/java/org/opentripplanner/transit/model/timetable/Trip.java
+++ b/application/src/main/java/org/opentripplanner/transit/model/timetable/Trip.java
@@ -16,6 +16,7 @@
import org.opentripplanner.transit.model.framework.FeedScopedId;
import org.opentripplanner.transit.model.framework.LogInfo;
import org.opentripplanner.transit.model.network.BikeAccess;
+import org.opentripplanner.transit.model.network.CarAccess;
import org.opentripplanner.transit.model.network.Route;
import org.opentripplanner.transit.model.organization.Operator;
@@ -45,6 +46,7 @@ public final class Trip extends AbstractTransitEntity