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

How to limit google autocomplete results to City and Country only #35

Closed
fmanoir opened this issue Jan 4, 2017 · 5 comments
Closed

Comments

@fmanoir
Copy link

fmanoir commented Jan 4, 2017

How to limit google autocomplete results to City and Country only

@spacewideweb
Copy link

Hi Did you get correct answer for your problem?
I am getting the problem like yours in my project.

@sddamico
Copy link
Member

sddamico commented Apr 6, 2017

If you read the documentation for the places autocomplete api, there are ways to restrict results to a particular location and radius or, alternatively, to within a country:

https://developers.google.com/places/web-service/autocomplete

The PlacesApi implementation in this project implements parts of that, but you'd likely need to make some changes and submit a pr to add support.

@ajayqualwebs
Copy link

Thanks For Wonder enhancement in your work, it's also a great feature.

cstarner added a commit to cstarner/android-PlacesAutocompleteTextView that referenced this issue Jul 14, 2018
Adds the ability to change the AutocompleteSearchType to return cities
cstarner added a commit to cstarner/android-PlacesAutocompleteTextView that referenced this issue Jul 14, 2018
Added enum value for cities for XML declaration
@sddamico
Copy link
Member

sddamico commented Jun 1, 2021

Closed by #96

@sddamico sddamico closed this as completed Jun 1, 2021
sddamico pushed a commit that referenced this issue Jun 1, 2021
* #35

Adds the ability to change the AutocompleteSearchType to return cities

* #35

Added enum value for cities for XML declaration
@hulisani-mudimeli
Copy link

Im currently using version: implementation 'com.seatgeek:placesautocomplete:0.3-SNAPSHOT'

However, which version contains the new country/city filter capability?

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

5 participants