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 Location autocomplete #19

Open
wondersoftheworld opened this issue Oct 21, 2016 · 4 comments
Open

Add Location autocomplete #19

wondersoftheworld opened this issue Oct 21, 2016 · 4 comments

Comments

@wondersoftheworld
Copy link

Team, can you utilize the Google location api for the location field in the app so users can choose from suggested locations as they type? Thanks.

@karllhughes
Copy link
Member

@wondersoftheworld I like the idea of a location auto-complete. Here's a tutorial on how to use Google's Places API for autocomplete: http://www.w3docs.com/learn-javascript/places-autocomplete.html

Any interest in making a PR for this? It may be a while before I can get to it.

@karllhughes karllhughes changed the title Feature request: Use Google location api for the location field? Add Location autocomplete Oct 21, 2016
@soleo
Copy link
Contributor

soleo commented Nov 30, 2016

How about using OpenStreetMap? It takes a little bit more effort to make it work, but there won't be any request limit. I think you can only use google's place API for certain amount of requests per day or per second.

API Reference: http://wiki.openstreetmap.org/wiki/Nominatim

e.g. http://nominatim.openstreetmap.org/search?q=Chicago,IL&format=json&addressdetails=1

@karllhughes
Copy link
Member

That's pretty cool. Definitely like the no-limits. I don't believe @wondersoftheworld is working on a PR so if you're interested in pursuing it @soleo feel free!

If not, we can keep this here for the time being.

@soleo
Copy link
Contributor

soleo commented Dec 4, 2016

I was wrong about http://nominatim.openstreetmap.org/search?q=Chicago,IL&format=json&addressdetails=1 . As their usage policy point out says

Unacceptable Use
The following uses are strictly forbidden and will get you banned:

Auto-complete search This is not yet supported by Nominatim and you must not implement such a service on the client side using the API.

But other API services which use openstreetmap still can be considered as an alternative option.

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

3 participants