Allow bicycles on ferries for Netex data - #3596
Merged
leonardehrenfried merged 14 commits intoSep 7, 2021
Merged
Conversation
Member
Author
|
As requested I have added a parameter to the netex config so that you can exclude certain line ids from allowing bicycles on. This however meant that most code in this PR is about this config param and the actual logic is quite small. |
t2gran
reviewed
Sep 6, 2021
t2gran
reviewed
Sep 6, 2021
t2gran
reviewed
Sep 6, 2021
t2gran
reviewed
Sep 6, 2021
t2gran
reviewed
Sep 6, 2021
t2gran
reviewed
Sep 6, 2021
t2gran
requested changes
Sep 6, 2021
t2gran
left a comment
Member
There was a problem hiding this comment.
In general the implementation looks good,I have suggested a name change since I think the ferryWithoutBicycleIds is a bit confusing - bicycleIds or ferryIds.
Member
Author
|
The name is indeed confusing - I will change it. Thanks! |
leonardehrenfried
force-pushed
the
enable-bicycles-on-ferries
branch
from
September 6, 2021 12:49
b25586b to
ca5cce8
Compare
t2gran
reviewed
Sep 7, 2021
t2gran
reviewed
Sep 7, 2021
t2gran
reviewed
Sep 7, 2021
t2gran
reviewed
Sep 7, 2021
Member
Author
|
I just rebuild the Norway graph tested again - it works. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
When importing Netex data, always allow bicycles to be taken onto ferries. This is useful because in Norway ferries are an important transport mode but the operators don't provide data in the Netex feeds if you're allowed to take the bike on. With very few exceptions however, you're allowed to do so.
What does it look like in the debug UI?
Reading the information from Netex
It was not clear to me how the bicycle conveyance information is actually supposed to be extracted from Netex as the schema is quite complex.
I was able to find the following references:
However in the current Norway-wide feed I cannot find an example of
FareFrameorLuggageAllowance.Is there an expert that I can ask where to extract this information from?
Issue
n/a
Tests
A test has been added.
Code style
Yes.
Documentation
I've commented the code with lots of explanations.
Changelog