在Web API中,使用nearbySearch
函數會返回附近具體座標的結果。使用iOS附近的Google Places搜索功能
但我無法在iOS SDK中找到類似的功能。
我認爲最糟糕的方法是使用REST API喜歡 https://maps.googleapis.com/maps/api/place/nearbysearch/json?location=22.979468,112.544345&radius=100&key=API_KEY
通過Alamofire
但我有一個問題,我不知道如何限制我的只有iOS的REST API API密鑰。
我試圖設置它爲iOS應用程序,但它不起作用。
請給我一些想法,非常感謝!