Repository navigation
NeTEx import - #2769
NeTEx import#2769
Conversation
|
This PR need more unit tests. |
|
I have added In addition we should create a NeTEX/Transmodel support documentation page - when this is done I will remove the WIP tag. |
abyrd
left a comment
There was a problem hiding this comment.
I have added some comments primarily to the top-level code that sets up and orchestrates the loading/mapping. The mapper logic that actually converts Netex to the internal model all looks good. Nice to see a lot of tests. The tests might benefit from some concise documentation on the individual tests, but one could argue that the test code is more "self documenting" than other code.
7a48ec5 to
caea88e
Compare
c7ae9be to
bcee732
Compare
- Fix some of the issues/comments from Andrew.
- Jet another refactoring of the NetexBundle; Add NetexConfig(DI),
Merge Bundle and Loader, extract XML and ZipFile pluming.
- Fix ServiceDate toString.
…mesForEachTripOperation.
|
We have not provided any documentation on NeTEx import, but I added it to the #2757 Issue, we should probably create a separate issue for this, but for now it is just a bullet on the above mentioned issue. |
1fc217b to
fd61e3e
Compare
- Fix some of the issues/comments from Andrew.
- Jet another refactoring of the NetexBundle; Add NetexConfig(DI),
Merge Bundle and Loader, extract XML and ZipFile pluming.
- Fix ServiceDate toString.
…mesForEachTripOperation.
…p times repair' out of GTFSPatternHopFactory.java
- Fix some of the issues/comments from Andrew.
- Jet another refactoring of the NetexBundle; Add NetexConfig(DI),
Merge Bundle and Loader, extract XML and ZipFile pluming.
- Fix ServiceDate toString.
…mesForEachTripOperation.
fd61e3e to
4f3ec2f
Compare
of skiped elements.
abyrd
left a comment
There was a problem hiding this comment.
Due to the size of the PR, for most of the actual Netex loading code I was just able to review the Javadoc and get familiar with it. I looked in more detail at the points where that code interfaces with existing OTP. It looks good to me, I think this is ready to merge. I just left a few comments about names, style, and other minor details.
| boolean hasOSM = builderParams.streets && !osmFiles.isEmpty(); | ||
| boolean hasGTFS = builderParams.transit && !gtfsFiles.isEmpty(); | ||
| if ( ! ( hasOSM || hasGTFS )) { | ||
| boolean hasNETEX = builderParams.transit && !netexFiles.isEmpty(); |
There was a problem hiding this comment.
I do find the names you suggested (hasOsm, hasGtfs, hasNetex) easier to read, and that post you linked to is good. We should reference that post in our coding guidelines. There is no pressing need to refactor now - the all-caps versions are also readable and capitalization is not consistent throughout the OTP project. But if you have time, we can start the new convention here with a change to this PR.
….entur:netex-java-model`.
…fs, hasNetex` from `hasOSM, hasGTFS, hasNETEX` in GraphBuilder.
|
I am not sure why the CI says "Pending", the CI build is green. |
To be completed by @opentripplanner/plc: