TKBuzzInfoProvider

Objective-C

@interface TKBuzzInfoProvider : NSObject

- (void)downloadContentOfService:(Service *)service
							forEmbarkationDate:(NSDate *)date
												inRegion:(nullable TKRegion *)regionOrNil
											completion:(TKServiceCompletionBlock)completion;

- (void)addContentToService:(Service *)service
               fromResponse:(NSDictionary *)responseDict;

@end

Swift

class TKBuzzInfoProvider : NSObject

Undocumented

Fetcher methods

  • Asynchronously fetches additional region information for the provided region.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    public class func fetchRegionInformation(forRegion region: TKRegion, completion: @escaping (TKAPI.RegionInfo?) -> Void)
  • Asynchronously fetches paratransit information for the provided region.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    public class func fetchParatransitInformation(forRegion region: TKRegion, completion: @escaping (TKAPI.Paratransit?) -> Void)
  • Asynchronously fetches all available individual public transport modes for the provided region.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    @objc
    public class func fetchPublicTransportModes(forRegion region: TKRegion, completion: @escaping ([TKModeInfo]) -> Void)
  • Asynchronously fetches additional location information for a specified coordinate.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    public class func fetchLocationInformation(_ annotation: MKAnnotation, for region: TKRegion, completion: @escaping (TKAPI.LocationInfo?) -> Void)
  • Asynchronously fetches additional location information for a specified coordinate.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    public class func fetchLocationInformation(_ coordinate: CLLocationCoordinate2D, for region: TKRegion, completion: @escaping (TKAPI.LocationInfo?) -> Void)

Transit alerts

Accessibility

  • Asynchronously fetches information about whether the provided region supports wheelchair.

    Note

    Completion block is executed on the main thread.

    Declaration

    Swift

    @objc
    public class func fetchWheelchairSupportInformation(forRegion region: TKRegion, completiton: @escaping (Bool) -> Void)