From e8ded2b16d6a33a890446f141e56833d19108484 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Sun, 2 Feb 2020 14:30:59 +0100 Subject: [PATCH 1/2] Adds stop dependent bike allowance as bike pickup/drop_off_type fields --- gtfs/spec/en/reference.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gtfs/spec/en/reference.md b/gtfs/spec/en/reference.md index 02709b34f..04dcb6168 100644 --- a/gtfs/spec/en/reference.md +++ b/gtfs/spec/en/reference.md @@ -208,6 +208,8 @@ File: **Required** | `drop_off_type` | Enum | Optional | Indicates drop off method. Valid options are:

`0` or empty - Regularly scheduled drop off.
`1` - No drop off available.
`2` - Must phone agency to arrange drop off.
`3` - Must coordinate with driver to arrange drop off. | | `shape_dist_traveled` | Non-negative float | Optional | Actual distance traveled along the associated shape, from the first stop to the stop specified in this record. This field specifies how much of the shape to draw between any two stops during a trip. Must be in the same units used in [shapes.txt](#shapestxt). Values used for `shape_dist_traveled` must increase along with `stop_sequence`; they cannot be used to show reverse travel along a route.
*Example: If a bus travels a distance of 5.25 kilometers from the start of the shape to the stop,`shape_dist_traveled`=`5.25`.*| | `timepoint` | Enum | Optional | Indicates if arrival and departure times for a stop are strictly adhered to by the vehicle or if they are instead approximate and/or interpolated times. This field allows a GTFS producer to provide interpolated stop-times, while indicating that the times are approximate. Valid options are:

`0` - Times are considered approximate.
`1` or empty - Times are considered exact. | +| `bike_pickup_type` | Enum | Optional | Indicates bike pickup allowance. Valid options are:

`0` or empty - No information for bike pickup allowance
`1` - Bicycle pickup allowed.
`2` - No bicycle pickup allowed. | +| `bike_drop_off_type` | Enum | Optional | Indicates bike drop off allowance. Valid options are:

`0` or empty - No information for drop off allowance.
`1` - Bicycle drop off allowed.
`2` - No bicycle drop off allowed.
`3` - Bicycles must drop off. | ### calendar.txt From 5f67f1ed1572c03096c301a7b7f6489797407359 Mon Sep 17 00:00:00 2001 From: Holger Bruch Date: Sun, 2 Feb 2020 20:15:58 +0100 Subject: [PATCH 2/2] Converts bike_pickup/drop_off_type to stoptimes.bike_allowed --- gtfs/spec/en/reference.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gtfs/spec/en/reference.md b/gtfs/spec/en/reference.md index 04dcb6168..e4f3a3b90 100644 --- a/gtfs/spec/en/reference.md +++ b/gtfs/spec/en/reference.md @@ -173,7 +173,7 @@ File: **Required** | `block_id` | ID | Optional | Identifies the block to which the trip belongs. A block consists of a single trip or many sequential trips made using the same vehicle, defined by shared service days and `block_id`. A `block_id` can have trips with different service days, making distinct blocks. See the [example below](#example-blocks-and-service-day) | | `shape_id` | ID referencing `shapes.shape_id` | Optional | Identifies a geospatial shape describing the vehicle travel path for a trip. | | `wheelchair_accessible` | Enum | Optional | Indicates wheelchair accessibility. Valid options are:

`0` or empty - No accessibility information for the trip.
`1` - Vehicle being used on this particular trip can accommodate at least one rider in a wheelchair.
`2` - No riders in wheelchairs can be accommodated on this trip. | -| `bikes_allowed` | Enum | Optional | Indicates whether bikes are allowed. Valid options are:

`0` or empty - No bike information for the trip.
`1` - Vehicle being used on this particular trip can accommodate at least one bicycle.
`2` - No bicycles are allowed on this trip. | +| `bikes_allowed` | Enum | Optional | Indicates whether bikes are allowed. Valid options are:

`0` or empty - No bike information for the trip (optionally, stop_times.bikes_allowed may provide stop specific bike information).
`1` - Vehicle being used on this particular trip can accommodate at least one bicycle.
`2` - No bicycles are allowed on this trip. | #### Example: Blocks and service day @@ -208,9 +208,7 @@ File: **Required** | `drop_off_type` | Enum | Optional | Indicates drop off method. Valid options are:

`0` or empty - Regularly scheduled drop off.
`1` - No drop off available.
`2` - Must phone agency to arrange drop off.
`3` - Must coordinate with driver to arrange drop off. | | `shape_dist_traveled` | Non-negative float | Optional | Actual distance traveled along the associated shape, from the first stop to the stop specified in this record. This field specifies how much of the shape to draw between any two stops during a trip. Must be in the same units used in [shapes.txt](#shapestxt). Values used for `shape_dist_traveled` must increase along with `stop_sequence`; they cannot be used to show reverse travel along a route.
*Example: If a bus travels a distance of 5.25 kilometers from the start of the shape to the stop,`shape_dist_traveled`=`5.25`.*| | `timepoint` | Enum | Optional | Indicates if arrival and departure times for a stop are strictly adhered to by the vehicle or if they are instead approximate and/or interpolated times. This field allows a GTFS producer to provide interpolated stop-times, while indicating that the times are approximate. Valid options are:

`0` - Times are considered approximate.
`1` or empty - Times are considered exact. | -| `bike_pickup_type` | Enum | Optional | Indicates bike pickup allowance. Valid options are:

`0` or empty - No information for bike pickup allowance
`1` - Bicycle pickup allowed.
`2` - No bicycle pickup allowed. | -| `bike_drop_off_type` | Enum | Optional | Indicates bike drop off allowance. Valid options are:

`0` or empty - No information for drop off allowance.
`1` - Bicycle drop off allowed.
`2` - No bicycle drop off allowed.
`3` - Bicycles must drop off. | - +| `bikes_allowed` | Enum | Optional | Indicates whether bikes are allowed. Valid options are:

`0` or empty - No bike information for this stop. In this case `trip.bikes_allowed` defines, if bikes are allowed.
`1` - Mounting/unmounting with bicycle is allowed.
`2` - No bicycles are allowed beyond this stop. Bicycles on board must unmount at this stop.
`3` - Bicycles are allowed to stay on board, but are not allowed to mount/unmount at this stop.
*If option 1, 2 or 3 apply for any stoptime of this stoptime's trip, the `trips.bikes_allowed` should be set to `0`.* | ### calendar.txt