-
Notifications
You must be signed in to change notification settings - Fork 6
Add Ability to search by state #13
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
Comments
Giving this a try |
After looking over the API and the JS code I believe if you just type a state name in the input that will return the breweries in the corresponding state. I did find that the documentation for the API is wrong in that you have to give the entire state name not just the state abbreviation in order to return data. I could be wrong about this but I searched multiple states and the return was only for the state searched. I don't know if its returning all possible outcomes but the search with an entire state name does return quite a few results. |
Thanks for looking into this. You are correct in that doing a search on the site for a state name will work like a filter. But, I have found that some breweries have state names in their names, and are not in that state. And searching for "Maine" brings back odd results because of their use of elastic search ("Main st" gets caught up in it.) I tried the following two URLs, and both worked for me in that they returned only California breweries: You're right: definitely getting less results than our little app shows here. Their default is 20 results for state endpoint (looks like the search endpoint default is 50). You can up the state one to 50 by appending the parameters like so: Also, be sure to look at #14 for some previous work and comments on this state search by another contributor. |
It would be cool to be able to find breweries by state.
The text was updated successfully, but these errors were encountered: