Google Places API: Using Multiple Name Parameters in Locating Locations

I read the documentation at: http://code.google.com/intl/nl/apis/maps/documentation/places/#PlaceSearches

But how can I change the search query for a place (shown below) so that I can limit the results to only specific enterprises.

https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=500&types=food&name=harbour&sensor=false&key=AIzaSyAiFpFd85eMtfbvmVNEYuNds5TEF9FjIPI 

For example, in the above code, it has types = food & name = harbor as two of the parameters. How to include only "bakery" and "cafe" as the type parameter (both are supported list types), and then include several name parameters.

In big cities, he can return with a result of about 20 or so, but I want to limit it to a few enterprises with which I have agreements, and just show their names on the map. I don't want Starbucks coming back, so I want to limit it to only 8-10 companies with which I have agreements. Their names will be stored in the database, so I can easily get them and pass them to the HTTP URL, but I don’t know how to make several names and get them all so that they appear on the map at the same time.

Any links to tutorials that might help, or your ideas and suggestions will help a lot!

+4
source share
1 answer

You can enable the types β€œbakery” and β€œcafe” by changing your request parameters = food | bakery | cafe add other types separated by "|" operator
for a supported list of types see link

0
source

All Articles