I've been able to make requests to the Places API from Google Maps, but I always get one result.
For example, searching something like "The White House", or an actual street address, get one single result:
https://maps.googleapis.com/maps/api/place/findplacefromtext/json
?input=the%20white%20house
&inputtype=textquery
&fields=formatted_address,name,geometry
&key=API_KEY
response: {
candidates: [
{
formatted_address: "1600 Pennsylvania Ave NW, Washington, DC 20500, USA",
geometry: {
location: {
lat: 38.8976763,
lng: -77.0365298
},
viewport: {
northeast: {
lat: 38.90148105,
lng: -77.03520012010728
},
southwest: {
lat: 38.89640805000001,
lng: -77.03789977989273
}
}
},
name: "The White House"
}
],
status: "OK"
};
What if I want to find, to be cliche, all the Starbucks around me? (how to limit the search radius is a later question)
https://maps.googleapis.com/maps/api/place/findplacefromtext/json
?input=starbucks
&inputtype=textquery
&fields=formatted_address,name,geometry
&key=API_KEY
response: {
candidates: [],
status: "ZERO_RESULTS"
};
Some comments indicate that I should be getting a different response for my "Starbucks" search. Why aren't I?