OnlineRangeCalculatorFactory
public enum OnlineRangeCalculatorFactory
A factory class for creating an instance of RangeCalculator, as an online service.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Creates a new
RangeCalculatorinstance with the option to specify a Base URL.Important
This is a Public Preview API. It may be changed or removed at any time.Declaration
Swift
public static func create(apiKey: String, baseURL: String? = nil) -> RangeCalculatorParameters
apiKeyA valid TomTom Service API Key.
baseURLA base URL to use for requests. Without the endpoint, as String. An example: “https://api.tomtom.com/routing/1”. When specified, the base URL should support the endpoint “calculateReachableRange”.
Return Value
An instance of
RangeCalculator.
TomTom SDK for iOS (0.53.1)
OnlineRangeCalculatorFactory