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.
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
Add option to include stations in
nearest
search #5390Add option to include stations in
nearest
search #5390Changes from 30 commits
c2d17db
b3ce4df
327067d
a2a3bb4
94ea8c3
e860a68
699bb47
895085f
d367d1a
1dc5cf8
a18d52d
128e738
681ab33
8176433
0ed2305
1b0c379
925008c
a54231b
c0a9df3
0b57c58
b2f04a0
a5fa1f4
e5892a2
b373fc8
3f51bb6
b4dff93
a08b8e4
bd20cba
7092574
8627c7e
1bc6785
57d064c
fb202d8
fd1973d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Same here
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.
We need special handling for this as we don't want to return stations by default.
This fact needs to also documented in the query docs.
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.
Is there some better way to do so than to simply add a check for whether
filterByPlaceTypes
is empty? Where exactly are the query docs that should be changed?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.
No, that's fine.
The docs to mentioned this are here:
OpenTripPlanner/src/main/resources/org/opentripplanner/apis/gtfs/schema.graphqls
Lines 2503 to 2506 in 7b48c4d
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.
Please also add a test for this slightly strange behaviour.
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.
Please make sure that stations are only included if you explicitly enable them.
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.
This part is a bit hard to follow but I don't know what to do about it.
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 would put each part in between
||
into a separate method which has a name and possibly a bit of Javadoc.This doesn't make the logic less complicated but helps someone else understand what each piece does.