Reputation: 1181
I am using the Google places api and it is working fine. I want to show the nearby places, for that I have given type as a restaurant in api url:
The situation arises where I can't make a call to api for each type. Is there any common keyword to get nearby places?
Upvotes: 0
Views: 143
Reputation: 2737
In google places api the "types" is an optional parameter. if u set the type it restricts the results to Places matching to that type only.
just remove the type parameter and see the result.
https://maps.googleapis.com/maps/api/place/nearbysearch/json
location=12.916263577001692,77.65223027601557&radius=1500&sensor=true&key=MYWORKINGKEY
Upvotes: 0