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

Search/Filter by Category #104

Closed
hkrishna opened this issue Apr 16, 2015 · 2 comments
Closed

Search/Filter by Category #104

hkrishna opened this issue Apr 16, 2015 · 2 comments

Comments

@hkrishna
Copy link
Contributor

Related to pelias/openstreetmap#33 and pelias/pelias#50

This issue deals with using the category mapped on a document. Here are a few use cases:

  • find all airports in a bbox
  • search for a transit station
  • find the 10 nearest mexican restaurants

The API should be able to take a parameter lets say category and based on its value - use it in the queries as a filter. For example:

localhost:3100/search?input=maysville&category=restaurant

should return restaurants that are named maysville

localhost:3100/reverse?lat=0&lon=0&category=restaurant:mexican

should return the nearest mexican restaurants to lat/lon 0,0

@missinglink
Copy link
Member

this is the query I used in dev: https://gist.github.com/missinglink/dd1dcdb377a0ff271890

@dianashk dianashk added this to the Pelias v1.0.0 milestone May 4, 2015
@dianashk
Copy link
Contributor

duplicates #128

@riordan riordan added the v1 label Aug 13, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants