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

Select locations by name #13

Closed
edsu opened this issue Jun 28, 2017 · 1 comment
Closed

Select locations by name #13

edsu opened this issue Jun 28, 2017 · 1 comment

Comments

@edsu
Copy link
Member

edsu commented Jun 28, 2017

Currently you need to know the WOEID for a place to enter it which isn't workable long term:

screen shot 2017-06-28 at 2 07 43 pm

There is a db method for loading all the places into redis which currently runs every time the server is started. So it should be possible to create an API endpoint that returns all the possible ones. Perhaps the component could autocomplete them?

Maybe the existing places endpoint could take a query parameter ?all=true to return all places instead of only the ones the user has selected to follow?

edsu added a commit that referenced this issue Jun 29, 2017
This adds a /api/v1/world API endpoint which returns a JSON mapping of
place ids to a metadata object for that place.

Refs #13
@edsu
Copy link
Member Author

edsu commented Jul 12, 2017

Fixed in 885ec9f

@edsu edsu closed this as completed Jul 12, 2017
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

No branches or pull requests

1 participant