Reputation: 1076
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
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