Skip to content

Reform proposal to add CrowdLevel#3

Closed
sccmcca wants to merge 29 commits intoTransitApp:occupancy_v2from
sccmcca:crowd-level
Closed

Reform proposal to add CrowdLevel#3
sccmcca wants to merge 29 commits intoTransitApp:occupancy_v2from
sccmcca:crowd-level

Conversation

@sccmcca
Copy link

@sccmcca sccmcca commented Feb 3, 2021

Add a separate enum for CrowdLevel that does not conflict with OccupancyStatus.

paulswartz and others added 24 commits April 27, 2020 11:29
Fields in pathways.txt and attributions.txt  also may be translated.
…bles

The following standard fields in those tables can be translated:

* pathways.txt - signposted_as, reversed_signposted_as
* levels.txt - level_name
* attributions.txt - organization_name, attribution_url, attribution_phone

Previously, the documentation placed them in a list of tables whose standard fields should not be translated.
Updated GTFS revision history for transit/gtfs/CHANGES.md as of May 21, 2020.
* Support DUPLICATED trips in GTFS-RT

* Revert deprecation of ADDED

* Remove auto-format change

* Better explanation of "forbidden"

* Add experimental labels for message/fields

* Add experimental labels for field

* Add experimental label for message

* Clarify DUPLICATED use with VehiclePosition

* Clarify that true frequency-based trips can't be duplicated

* Explicitly define how the duplicated trip schedule and RT values are calculated

* docs: Add migration guide for transition from ADDED to DUPLICATED trips

* docs: Normalize comments in code

* docs: Allow trip.trip_id->trip_properties.trip_id link in migration guide
This is an editorial follow-up to google#221 to fix two items:
* New messages should have the extensions fields to allow 3rd party and internal extensions - this commit adds these fields
* An erroneous comment was added that labeled schedule_relationship as experimental - this commit removes it
headway_secs=0 does not have a physical meaning. This must be the time between departures for the same stop for a single trip.
Define positive and non-null number field types

They are already used in the table descriptions.

Co-authored-by: scmcca <scott@mobilitydata.org>
* Clarification of stop_times.stop_id

- It explicitly tells that the referenced locations must be stops/platforms and have a `stops.location_type` value of `0` or empty.
- Future-proof phrasing: it references only what must be done.
Copy link

@barbeau barbeau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @scmcca for putting this together. It looks pretty good to me. Some comments/thoughts in-line.


## _enum_ CrowdLevel

The passenger crowd level for the vehicle or carriage. CrowdLevel enum values must be interpreted on an ordinal scale in increasing order from _**NOT_CROWDED**_ to _**CROWDED**_.
Copy link

@barbeau barbeau Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would add another sentence saying "In other words, producers must represent the minimum crowdedness level with NOT_CROWDED and the maximum crowdedness level with CROWDED."

There are going to be questions as to when CrowdLevel should be used and when OccupancyStatus should be used. I'd be inclined to provide an explicit example to make sure there is no confusion.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, should producers take operational considerations like social distancing into account when publishing CrowdLevel? There is a line in occupancy_percentage definition about this - I'd suggest a similar mention here.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a producer, we prefer not to change the crowd level that we publish according to social distancing rules. We prefer to "tell it as it is" and let the client decide wether he is confortable or not with crowding in the vehicle. (since some clients are more nervous than others)

Copy link
Author

@sccmcca sccmcca Feb 4, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please see my latest commit where I added the sentence "or as otherwise defined by current operating regulations". If not otherwise defined, I think there won't be any introduced ambiguity. Thoughts?

- Reverted .proto field value assignments change
- Clarified ordinal usage of CrowdLevel
- Clarified CrowdLevel as subject to current allowed operating regulations (i.e., social distancing)
- Examples for simultaneous use of OccupancyStatus and CrowdLevel
- Corrected type
@gcamp
Copy link
Member

gcamp commented Feb 9, 2021

👍 on the actual field and description.

🤷 Adding this on top of the two existing fields seems overkill, but I understand this is probably the solution that will get accepted vs replacement.

👎 The ordering of the field changed. That makes the .proto not backward compatible.

@sccmcca
Copy link
Author

sccmcca commented Feb 9, 2021

@gcamp Thank you for the review!

I agree this proposal seems like overkill right now, but it's possible that it replaces the other experimental occupancy descriptions in the future.

It looks like CrowdLevel should have been at value 11 under VehiclePosition, after occupancy_percentage that has value 10. I'll commit the fix!

Move to backward-compatible value
scmcca added 3 commits February 10, 2021 19:01
- Added missing default value
- Style and grammar
@github-actions
Copy link

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the stale label Nov 25, 2021
@github-actions
Copy link

github-actions bot commented Dec 2, 2021

This pull request has been closed due to inactivity. Pull requests can always be reopened after they have been closed. See the Specification Amendment Process.

@github-actions github-actions bot closed this Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants