TKRouteAutocompleter
public class TKRouteAutocompleter : TKAutocompleting
An autocompleter for public transport routes in supported TripGo regions
Implements TKAutocompleting
, providing instances of Route
in
object
.
Warning
These autocompletion results cannot be turned into anMKAnnotation
, and
the implementation of annotation(for:completion:)
will therefore call its completion
handler with nil
.
-
Undocumented
Declaration
Swift
public init()
-
Undocumented
Declaration
Swift
public let allowLocationInfoButton: Bool
-
An optional operator ID to limit which routes are returned
Declaration
Swift
public var operatorID: String?
-
An optional list of mode identifier to limit which routes are returned
Declaration
Swift
public var modes: [String]
-
Declaration
Swift
public func autocomplete(_ input: String, near mapRect: MKMapRect, completion: @escaping (Result<[TKAutocompletionResult], Error>) -> Void)
-
Declaration
Swift
public func annotation(for result: TKAutocompletionResult, completion: @escaping (Result<MKAnnotation?, Error>) -> Void)