Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[doc] ntfs2gtfs: Update location_type according to the code #550

Merged
merged 2 commits into from
Feb 26, 2020

Conversation

papailio
Copy link
Contributor

No description provided.

@@ -82,7 +82,7 @@ stop_name | yes | stops.txt | stop_name
stop_lat | yes | stops.txt | stop_lat
stop_lon | yes | stops.txt | stop_lon
zone_id | no | stops.txt | fare_zone_id
location_type | no | stops.txt | location_type
location_type | no | stops.txt | location_type | The value is set to `0` if the input value is `0` or invalid or unspecified, `1` if the input value is `1`, `2` if the input value is `3`, `3` if the input value is `4` and `4` if the input value is `5`.
Copy link
Contributor

Choose a reason for hiding this comment

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

What about if the input value is 2?

Copy link
Contributor

@woshilapin woshilapin Feb 21, 2020

Choose a reason for hiding this comment

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

Some more information. From the current implementation, this is what is done:

  • Remove all stop of type 2
  • In all trip, remove all stop_time whose parent_station was of type 2
  • Remove all trip that don't contains stop_time anymore

Apart from the fact that this choice of removing only parts of a trip is weird, is very possible we also end up with route that don't contain any trip anymore.

Copy link
Contributor

Choose a reason for hiding this comment

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

@woshilapin you're right about this "need for sanitize", we'll do it soon.

@prhod prhod merged commit 8181e38 into hove-io:master Feb 26, 2020
@datanel datanel changed the title Doc ntfs2gtfs: Update location_type according to the code [doc] ntfs2gtfs: Update location_type according to the code Mar 3, 2020
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.

4 participants