Skip to content

Change type of headway_secs to positive integer#249

Merged
aababilov merged 1 commit intogoogle:masterfrom
aababilov:headway_secs_positive
Oct 2, 2020
Merged

Change type of headway_secs to positive integer#249
aababilov merged 1 commit intogoogle:masterfrom
aababilov:headway_secs_positive

Conversation

@aababilov
Copy link
Contributor

headway_secs=0 does not have a physical meaning. This must be the time between departures for the same stop for a single trip.

headway_secs=0 does not have a physical meaning. This must be the time between departures for the same stop for a single trip.
@google-cla google-cla bot added the cla: yes label Sep 28, 2020
@aababilov
Copy link
Contributor Author

Also, Google shows a validation error for feeds that give headway_secs=0.

@aababilov aababilov requested a review from timMillet September 28, 2020 04:41
Copy link
Contributor

@timMillet timMillet left a comment

Choose a reason for hiding this comment

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

I agree with the proposition. However, "Positive Integer" is not defined in the Field Types section and should be added for consistency.

@aababilov
Copy link
Contributor Author

You are right, it is missing in the section. However, it is already used for pathways.traversal_time. I will add the definition in a separate pull request.

@aababilov aababilov merged commit 0fb98c3 into google:master Oct 2, 2020
@aababilov
Copy link
Contributor Author

#251 for the new types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants