public protocol TKAutocompleting
Called whenever a user types a character. You can assume this is already throttled.
func autocomplete(_ input: String, near mapRect: MKMapRect) -> Single<[TKAutocompletionResult]>
Query fragment typed by user
Last map rect the map view was zoomed to (can be
Autocompletion results for query fragment. Should fire with empty result or error out if nothing found. Needs to complete.
Called to fetch the annotation for a previously returned autocompletion result
func annotation(for result: TKAutocompletionResult) -> Single<MKAnnotation>
The result for which to fetch the annotation
Single-observable with the annotation for the result. Can error out if an unknown result was passed in.
Text and action for an additional row to display in the results, e.g., to request user permissions if the autocompletion provider can’t provide results without that.
Singleshould fire on completion of the action (e.g., asking for permission) indicating if the results or texts should be refreshed.
func additionalActionTitle() -> String?
func triggerAdditional(presenter: UIViewController) -> Single<Bool>