SKTCoordinates

Objective-C

@interface SKTCoordinates : NSObject

Swift

class SKTCoordinates : NSObject

A class containing coordinate data.

  • The latitude in degrees. May be nil

    Declaration

    Objective-C

    @property (nullable) NSNumber *latitude;

    Swift

    var latitude: NSNumber? { get set }
  • The longitude in degrees. May be nil

    Declaration

    Objective-C

    @property (nullable) NSNumber *longitude;

    Swift

    var longitude: NSNumber? { get set }
  • @abstract Creates coordinates with the given latitude and longitude

    Declaration

    Objective-C

    - (nonnull instancetype)initWithLatitude:(double)latitude
                                   longitude:(double)longitude;

    Swift

    init(latitude: Double, longitude: Double)