-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Filter vector tiles stops by current service week #6003
Filter vector tiles stops by current service week #6003
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #6003 +/- ##
==========================================
Coverage 69.78% 69.79%
- Complexity 17362 17367 +5
==========================================
Files 1964 1964
Lines 74388 74403 +15
Branches 7625 7626 +1
==========================================
+ Hits 51911 51928 +17
+ Misses 19833 19831 -2
Partials 2644 2644 ☔ View full report in Codecov by Sentry. |
b93818c
to
b15ea3f
Compare
913239d
to
9303ee5
Compare
@fpurcell If you want to try this newest version out, you can use this config: https://github.com/opentripplanner/OpenTripPlanner/pull/6003/files#diff-2b0ae0e039e4bd0880eef97069c379ddb3b69fddbfe95e18b8e20dbdde457c36R66-R73 |
@optionsome @t2gran I move the class |
src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/LayerFilters.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/LayerFilters.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/vectortiles/layers/stops/LayerFilters.java
Outdated
Show resolved
Hide resolved
import org.opentripplanner.transit.service.TransitService; | ||
|
||
/** | ||
* Utility methods for instantiating a {@link PatternByServiceDatesFilter}/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Utility methods for instantiating a {@link PatternByServiceDatesFilter}/ | |
* Utility methods for instantiating a {@link PatternByServiceDatesFilter}. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the /
was a mistake. but if not, feel free to ignore this suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was. Applied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why am I still seeing the /
here? What caused this 🤔 ?
src/test/java/org/opentripplanner/apis/gtfs/PatternTestModel.java
Outdated
Show resolved
Hide resolved
src/ext/java/org/opentripplanner/ext/vectortiles/layers/LayerFilters.java
Outdated
Show resolved
Hide resolved
Since I was struggling to attract reviewers, I added one more parameter to |
import org.opentripplanner.transit.service.TransitService; | ||
|
||
/** | ||
* Utility methods for instantiating a {@link PatternByServiceDatesFilter}/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why am I still seeing the /
here? What caused this 🤔 ?
src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls
Outdated
Show resolved
Hide resolved
@optionsome I think I might have made a mistake when merging/rebasing. It's fixed now. |
src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls
Outdated
Show resolved
Hide resolved
Co-authored-by: Joel Lappalainen <[email protected]>
Summary
As requested by @fpurcell this PR allows the filtering of the vector tiles stop layer by the current service week.
It introduces a new concept into the vector tiles: a layer filter, which allows you remove results from the regular set of geometries.
Issue
Relates to #4879
Unit tests
✔️
Documentation
Autogenerated & Javadoc.