简体   繁体   English

通过iPhone中的Google GeoCoding API设置位置搜索范围

[英]Set bounds of locations search by Google GeoCoding API in iPhone

Everyone I am trying to do something with MKMapView. 我正在尝试使用MKMapView进行操作的每个人。 I have a location in form of latitude and longitude value and I want to search for annotations present in 200km around this location using google geocoding API. 我有一个经度和纬度值形式的位置,我想使用Google地理编码API搜索此位置周围200公里内的注释。 Can anyone please tell me how to set this bound? 谁能告诉我如何设置此界限? I am currently using following url to send my location to google geocoding api. 我目前正在使用以下网址将我的位置发送到Google地理编码API。

http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true_or_false

Best Regards 最好的祝福

With the help of the google key only you can able to access this link. 借助google键,您只能访问此链接。 try to get the key from google. 尝试从Google获取密钥。

https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=200&types=food&name=harbour&sensor=false&key=(Here you can use your key). https://maps.googleapis.com/maps/api/place/search/json?location=-33.8670522,151.1957362&radius=200&types=food&name=harbour&sensor=false&key=(您可以在此处使用密钥)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM