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
RangeCalculator
instance 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) -> RangeCalculator
Parameters
apiKey
A valid TomTom Service API Key.
baseURL
A 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
.