简体   繁体   English

iPhone SDK:在滚动MapView时检索街道信息

[英]iPhone SDK: Retrieving street info while scrolling MapView

Is it possible to continuously retrieve street name/house number (and update it somewhere in text box or callout) while user scrolls UIMapView? 当用户滚动UIMapView时,是否可以连续获取街道名称/门牌号(并在文本框或标注中的某处进行更新)? I've found that MKReverseGeocoder is responsible for converting (latitude, longitude) into street name, but it is said that "you should not send more than one reverse-geocode request per minute". 我发现MKReverseGeocoder负责将(纬度,经度)转换为街道名称,但是据说“您每分钟不应发送多个反向地理编码请求”。

Thanks in advance. 提前致谢。

As you've discovered, not really: you'll get rate limited pretty quickly. 正如您所发现的,并非如此:您将很快获得速率限制。 Both the standard Google Maps API and MKReverseGeocoder get rate limited on a per user basis. 标准Google Maps API和MKReverseGeocoder均受每个用户限制速率。 These limits are pretty high, but not high enough for you to continuously fire off requests. 这些限制很高,但不足以使您不断触发请求。

There's nothing to stop you doing it, but chances are if you continuously abuse the reverse geocoder your app may get pulled, or reverse geocoding requests will simply fail until your rate limit is reset. 没有什么可以阻止您这样做的,但是如果您不断滥用反向地理编码器,则可能会拉扯您的应用程序,或者反向地理编码请求只会失败,直到重置速率限制为止。

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

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