zhuorantan / LocationPicker

A ready for use and fully customizable location picker for your app
MIT License
400 stars 79 forks source link

MapKit location search getting throttled #15

Open v-ken opened 7 years ago

v-ken commented 7 years ago

When a user types quickly or when a search text is deleted (by holding the delete key to delete a letter at a time), MapKit may throttle the search causing the error MKErrorDomain error 3 which is MKErrorLoadingThrottled.

StackOverflow reference: http://stackoverflow.com/questions/23505097/ios-app-getting-throttled-from-local-searches

A couple of solutions comes to mind:

  1. Delay the search so that it occurs a short time after an inactivity of user input
  2. Use Google Places Autocomplete instead of MapKit (or provide the option to use either)