Hudson Pereira
Hudson Pereira

Reputation: 1076

Google Place API's type filter

So, I'm sending a request asking for establishments places as follow:

https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=&radius=40&type=establishment&language=pt_BR&key=

But unfortunately i'm getting places of type route, locality and political as well.

Upvotes: 0

Views: 1916

Answers (1)

Ricky Cuarez
Ricky Cuarez

Reputation: 768

The reason why you are getting mix types is because the type/s "establishment" is already deprecated. It is no longer supported in the type filter of a place search, or in the types property when adding a place. You can read about this in the documentation here.

Upvotes: 2

Related Questions