Skip to content

Commit

Permalink
Editorial changes: rendering of locations.geojson description + updat…
Browse files Browse the repository at this point in the history
…ing booking_rule_id description (#441)

* Update reference.md

* Update reference.md

* Update gtfs/spec/en/reference.md

Co-authored-by: Tzu-Jen Chan <[email protected]>

---------

Co-authored-by: Tzu-Jen Chan <[email protected]>
  • Loading branch information
isabelle-dr and tzujenchanmbd authored Apr 29, 2024
1 parent 1f6a2f5 commit ca4b879
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gtfs/spec/en/reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -737,6 +737,7 @@ Assigns stops from stops.txt to location groups.
File: **Optional**

Defines zones where riders can request either pickup or drop off by on-demand services. These zones are represented as GeoJSON polygons.

- This file uses a subset of the GeoJSON format, described in [RFC 7946](https://tools.ietf.org/html/rfc7946).
- The `locations.geojson` file must contain a `FeatureCollection`.
- A `FeatureCollection` defines various stop locations where riders may request pickup or drop off.
Expand Down Expand Up @@ -766,7 +767,7 @@ Defines the booking rules for rider-requested services

| Field Name | Type | Presence | Description |
| ------ | ------ | ------ | ------ |
| `booking_rule_id` | ID | **Required** | Identifies the rule. |
| `booking_rule_id` | Unique ID | **Required** | Identifies a rule. |
| `booking_type` | Enum | **Required** | Indicates how far in advance booking can be made. Valid options are:<br><br>`0` - Real time booking.<br>`1` - Up to same-day booking with advance notice.<br>`2` - Up to prior day(s) booking. |
| `prior_notice_duration_min` | Integer | **Conditionally Required** | Minimum number of minutes before travel to make the request.<br><br>**Conditionally Required**:<br>- **Required** for `booking_type=1`.<br>- **Forbidden** otherwise. |
| `prior_notice_duration_max` | Integer | **Conditionally Forbidden** | Maximum number of minutes before travel to make the booking request.<br><br>**Conditionally Forbidden**:<br>- **Forbidden** for `booking_type=0` and `booking_type=2`.<br>- Optional for `booking_type=1`.|
Expand Down

0 comments on commit ca4b879

Please sign in to comment.