我需要使用Google API搜索多種類型的iOS應用。如何在iOS應用中使用Google Places API搜索多種類型
這裏是我如何搜索一種類型。在這個例子中,它的類型是博物館我想同時搜索博物館和art_gallery。我怎麼會去這樣做,在:
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"];
感謝您的幫助
:)
我認爲,並嘗試以下沒有任何成功:&radius = 500&types = museum | art_gallery&sensor = false&key = – hanumanDev
這對我而言完全正常,並且會產生理想的結果。現已停用https://maps.googleapis.com/maps/api/place/search/json?location=34.0522222,-118.2427778&radius=500&types=museum|art_gallery&sensor=false&key=YOUR_API_KEY_HERE –
類型 –