Location
public class Location
The Device.Location
class describing the location of a device.
-
Build a new
Location
instance.Declaration
Swift
public init(latitude: Float, longitude: Float, altitude: Float?, uncertainty: Float?)
-
Gets the latitude in decimal degrees.
Declaration
Swift
public func getLatitude() -> Float
Return Value
the latitude
-
Gets the longitude in decimal degrees.
Declaration
Swift
public func getLongitude() -> Float
Return Value
the longitude
-
Gets the altitude in meters.
Declaration
Swift
public func getAltitude() -> Float?
Return Value
the altitude
-
Gets the uncertainty in meters.
Declaration
Swift
public func getUncertainty() -> Float?
Return Value
the uncertainty