TKBuzzInfoProvider
public enum TKBuzzInfoProvider
Undocumented
-
fetchRegionInformation(for:
Asynchronous) -
fetchRegionInformation(forRegion:
Asynchronous) -
fetchParatransitInformation(for:
Asynchronous) -
fetchParatransitInformation(forRegion:
Asynchronous) -
fetchPublicTransportModes(for:
Asynchronous) Asynchronously fetches all available individual public transport modes for the provided region.
Declaration
Swift
public static func fetchPublicTransportModes(for region: TKRegion) async -> [TKModeInfo]?
-
fetchPublicTransportModes(forRegion:
Asynchronous) Undocumented
Declaration
Swift
public static func fetchPublicTransportModes(forRegion region: TKRegion) async throws -> [TKModeInfo]?
-
fetchLocationInformation(_:
Asynchronousfor: ) -
fetchLocationInformation(locationID:
Asynchronousfor: ) -
fetchLocationInformation(_:
Asynchronousfor: )
-
fetchTransitAlerts(for:
Asynchronous) -
fetchTransitAlerts(forRegion:
Asynchronous) -
fetchRoutes(forRegion:
Asynchronousquery: modes: operatorID: ) Fetches a list of routes in for the provided region, optionally filtered
Warning
Calling this method without any of the filter parameters can result both in a slow, big response due to the large number of routes in certain regions.
Declaration
Parameters
region
The region for which to fetch a list of routes
query
Optional search string to filter routes by their short name (complete matches only) or by their name (partial matches)
modes
If provided, only routes using any of these mode identifiers will be returned, e.g.,
pt_pub_bus
operatorID
If provided, only routes for this operator will be returned
Return Value
List of routes
-
fetchRouteDetails(routeID:
AsynchronousoperatorID: region: )
-
Undocumented
See moreDeclaration
Swift
public struct AlertsTransitResponse : Codable