RoutingController
open class RoutingController: OTRRoutingController
RoutingController
is a subclass of On The Road’s routing controller and is the main access point in the SDK for querying for routes.
Note
The routing controller provides API key management and as such is expected to be retrieved via thecontroller()
function so everything gets setup correctly.
-
Static function that vends a properly configured routing controller.
Declaration
Swift
open static func controller() throws -> RoutingController
-
Set the locale to determine the language the route’s directions are in. The default value is Locale.current
To see a list of supported languages, check the documentation: https://mapzen.com/documentation/mobility/turn-by-turn/api-reference/#directions-options
Declaration
Swift
open func updateLocale(_ l: Locale)