Functions
The following functions are available globally.
-
Returns a TTLocationCircle struct at the given center point and a radius
Declaration
Objective-C
static inline TTLocationCircle TTLocationCircleMake(CLLocationCoordinate2D centerPoint, double meters)
Swift
func TTLocationCircleMake(_ centerPoint: CLLocationCoordinate2D, _ meters: Double) -> TTLocationCircle
Parameters
centerPoint
center point type CLLocationCoordinate2D
meters
circle radius in meters
Return Value
TTLocationCircle
-
Specifies the speed-dependent component of consumption.
Declaration
Objective-C
static inline TTSpeedConsumption TTSpeedConsumptionMake(int speed, double consumption)
Swift
func TTSpeedConsumptionMake(_ speed: Int32, _ consumption: Double) -> TTSpeedConsumption
Parameters
speed
current speed
consumption
current consumption
Return Value
TTSpeedConsumption