Add categories support to reverse query.#1662
Open
davetha wants to merge 1 commit intopelias:masterfrom
Open
Conversation
…on/lat. I realized it was already plumbed everywhere, except for the sanitizer entry in the middleware. This patch adds the support for categories by passing a get parameter just like https://github.com/pelias/documentation/blob/master/place.md
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.
This patch adds the support for categories by passing a get parameter just like https://github.com/pelias/documentation/blob/master/place.md
I was wanted to know the categories on what I was doing a reverse lookup on, and in highly populated areas, some businesses share the same lon/lat. It can often help by including the category type.
You can test it out by using doing the following queries:
/v1/reverse?categories&point.lat=26.3622924&point.lon=-80.1355797
/v1/reverse?categories=health&point.lat=26.3622924&point.lon=-80.1355797
Documentation will also be provided in another pull request on pelias/documentation.