Reputation: 1494
I am building an Android application that lets users find restaurants in a specific area (LatLngBounds). I want to do a Google Place search for restaurants that are located inside this LatLngBounds and not outside of it.
I understand that there is a way to do this with the Google Maps JavaScript API V3, however, is there a way to do a Google Place search using LatLngBounds as the location parameter on Android? Thank you
Upvotes: 1
Views: 1986
Reputation: 1494
After some thorough researching, I've realized that there is no easy way to search the Google Place API within a bounds area (LatLngBounds) unless I use the Google Maps JavaScript API V3.
However, there is an alternative solution, which is to use the Yelp API. The Yelp API lets developers specify a "bounding box...defined by a southwest latitude/longitude and a northeast latitude/longitude geographic coordinate."
Here is a link for more information:
http://www.yelp.com/developers/documentation/v2/search_api
Upvotes: 2
Reputation: 2927
This is late to the party but it seems like with the newer Google Services you can set LatLngBounds for your Places search:
Upvotes: 0