【问题标题】:Google Map iOS Application Search谷歌地图 iOS 应用搜索
【发布时间】:2015-09-01 07:09:03
【问题描述】:
【问题讨论】:
标签:
ios
google-maps
search
maps
【解决方案1】:
使用 Google Place Api 查找搜索、带有图片的 NearBY 地点
Demo 中提供了与 Google Api Search 相关的所有内容。
我创建了一个demo,你可以得到完整的解决方案,检查一下。
可能对你有帮助。
GooglePlacesAPIDemo
【解决方案2】:
这会以谷歌地图的形式返回准确的结果。但是,我已将类型设置为“ATM”,但您可以获得任何餐厅、酒吧、银行等的结果。
// Call Google Places API as..
NSString * strUrl = [ NSString stringWithFormat : @"https://maps.googleapis.com/maps/api/place/search /json?location = %f , %f &radius = % @ &type = atm &sensor = true & name = %@ &key = %@",latitude, longitude, radius.text,UITextField.text, googleAPI_Key ];
您将获得 JSON 格式的数据。根据你的解析。
对于纬度和经度,使用 CLLocationManager 获取当前位置。