JDM
JDM

Reputation: 893

Google Places Autocomplete, filter by establishments/restaurants

I can use the API to search by establishments as shown in their guides(https://developers.google.com/places/ios-api/autocomplete), however I also know that a GMSPlace has a type, which can be a coffee shop/restaurant.

The ios api doesn't seem to have a simple "place search" like the web service does, it's either PlaceID search, or autocomplete.

Can I use the Autocomplete and filter my results based on the type?

Upvotes: 2

Views: 1831

Answers (1)

Verma
Verma

Reputation: 8449

You can use GMSAutocompleteFilter to filter out establishment. establishment returns only places that are businesses.

Upvotes: 1

Related Questions