Skip to content

Commit 8c2f074

Browse files
authored
feat: cars_allowed - update schema (#2083)
* cars_allowed - update schema
1 parent e55f63c commit 8c2f074

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
package org.mobilitydata.gtfsvalidator.table;
2+
3+
import org.mobilitydata.gtfsvalidator.annotation.GtfsEnumValue;
4+
5+
/**
6+
* Enum representing the cars_allowed field values.
7+
*
8+
* <p>0 or empty: No information available about car access for trips associated with this agency or
9+
* route. 1: Cars are allowed for trips associated with this agency or route. 2: Cars are not
10+
* allowed for trips associated with this agency or route.
11+
*/
12+
@GtfsEnumValue(name = "NO_INFORMATION", value = 0)
13+
@GtfsEnumValue(name = "ALLOWED", value = 1)
14+
@GtfsEnumValue(name = "NOT_ALLOWED", value = 2)
15+
public interface GtfsCarsAllowedEnum {}

main/src/main/java/org/mobilitydata/gtfsvalidator/table/GtfsTripSchema.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,6 @@ public interface GtfsTripSchema extends GtfsEntity {
5858
GtfsWheelchairBoarding wheelchairAccessible();
5959

6060
GtfsBikesAllowed bikesAllowed();
61+
62+
GtfsCarsAllowed carsAllowed();
6163
}

0 commit comments

Comments
 (0)