do not deduplicate different units at the same address #1472
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.
Multiple units at the same address are currently being deduplicated.
This can lead to situations where the response is showing much fewer results than was requested.
In particular this is not a great experience for
/v1/reverse
but also for the forward-geocoding APIsOne thing to consider before merging this:
So the pro here is that we can show all the units in the building and the con is that these results will dominate results for queries near these multi-unit buildings/campuses.
I really wish there was something analogous to a
GROUP BY
in elasticsearch, but this is unfortunately not possible.An alternative solution would be to increase the
querySize
variable from what it is now (usually double?size
) so that more results are returned and then continue to consider these as duplicates 🤷♂️Thoughts/Feels?