Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to search for multiple types with Google Places API in an iOS app

I need to search for more than one type with the Google API for an iOS app.

here's how I search for one type. In this example it's of type museum I'd like to search both museum and art_gallery. How would I go about doing that in:

NSURL *googlePlacesURL = [NSURL URLWithString:@"https://maps.googleapis.com/maps/api/place/search/xml?location=34.0522222,-118.2427778&radius=500&types=**museum**&sensor=false&key=APIKEY"];

thanks for any help

:)

like image 956
hanumanDev Avatar asked Nov 28 '25 06:11

hanumanDev


1 Answers

I had added two request parameters and i am getting response which contains both atm's as well as cafe's. You can refer the below link to validate the response. https://maps.googleapis.com/maps/api/place/search/xml?location=19.148279,72.993874&rankby=distance&types=cafe|atm&sensor=false&key=

like image 63
Sonal0706 Avatar answered Nov 30 '25 22:11

Sonal0706



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!