简体   繁体   中英

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? 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".

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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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