Reputation: 1933
At least this one should be easy for you to verify. This request returns an INVALID_REQUEST
:
But this one works (exactly the same but with a types
parameter):
In the documentation it says that types is not a required parameter so is it a bug in their API?
Upvotes: 4
Views: 10145
Reputation: 1933
It is not a bug but an expected behaviour (inconsistent behaviour I believe but anyways). For those who are interested, I got my answer here: https://code.google.com/p/gmaps-api-issues/issues/detail?id=5456
- distance. This option sorts results in ascending order by their distance from the specified location. Ranking results by distance will set a fixed search radius of 50km. One or more of keyword, name, or types is required.
Upvotes: 7