Skip to content
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 categories support to reverse query. #1662

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davetha
Copy link

@davetha davetha commented Sep 1, 2023

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.

…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant