TTLocation
Objective-C
@interface TTLocation : NSObject
Swift
class TTLocation : NSObject
A TTLocation object contains the geographical location.
-
Creates a TTLocation object with the specified coordinate.
Declaration
Objective-C
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate;
Swift
init(coordinate: CLLocationCoordinate2D)
Parameters
coordinate
coordinate.
Return Value
TTLocation object.
-
Creates a TTLocation object with the specified coordinate and radius.
Declaration
Objective-C
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate withRadius:(double)radius;
Swift
init(coordinate: CLLocationCoordinate2D, withRadius radius: Double)
Parameters
coordinate
coordinate.
radius
radius.
Return Value
TTLocation object.
-
Creates a TTLocation object with the specified coordinate and bearing.
Declaration
Objective-C
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate withBearing:(double)bearing;
Swift
init(coordinate: CLLocationCoordinate2D, withBearing bearing: Double)
Parameters
coordinate
coordinate.
bearing
bearing.
Return Value
TTLocation object.
-
Creates a TTLocation object with the specified coordinate, radius, bearing and accurarcy.
Declaration
Objective-C
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate withRadius:(double)radius withBearing:(double)bearing withAccuracy:(CLLocationAccuracy)accuracy;
Swift
init(coordinate: CLLocationCoordinate2D, withRadius radius: Double, withBearing bearing: Double, withAccuracy accuracy: CLLocationAccuracy)
Parameters
coordinate
coordinate.
radius
radius.
bearing
bearing.
accuracy
accuracy.
Return Value
TTLocation object.
-
Creates a TTLocation object with the specified coordinate, radius, bearing and accurarcy.
Declaration
Objective-C
- (instancetype _Nonnull)initWithCoordinate:(CLLocationCoordinate2D)coordinate withRadius:(double)radius withBearing:(double)bearing withAccuracy:(CLLocationAccuracy)accuracy isDimmed:(BOOL)isDimmed;
Swift
init(coordinate: CLLocationCoordinate2D, withRadius radius: Double, withBearing bearing: Double, withAccuracy accuracy: CLLocationAccuracy, isDimmed: Bool)
Parameters
coordinate
coordinate.
radius
radius.
bearing
bearing.
accuracy
accuracy.
isDimmed
dimmed.
Return Value
TTLocation object.