SWLocation
@objc
public class SWLocation : NSObject, Codable
This model is used to describe a location. The model has various uses with the SplytWidget.
-
Latitude co-ordinate.
Declaration
Swift
@objc public var latitude: Double -
Longitude co-ordinate.
Declaration
Swift
@objc public var longitude: Double -
Detailed address.
Declaration
Swift
@objc public internal(set) var address: SWAddress? -
Formatted Address, useful for display.
Declaration
Swift
@objc public internal(set) var formatted: String?
-
Call this method to intialise a
SWLocationDeclaration
Swift
@objc public init(latitude: Double = Double(INT_MAX), longitude: Double = Double(INT_MAX))Parameters
latitudeThe latitude co-ordinate.
longitudeThe longitude co-ordinate.
nameA name used to describe this location.
SWLocation Class Reference