Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

SDLGPSData Class Reference

Section Contents

Overview

Describes the GPS data. Not all data will be available on all carlines.

@since SDL 2.0

longitudeDegrees

longitude degrees

Required, Float, -180 - 180

Objective-C

@property (readwrite, strong, nonatomic)
    NSNumber<SDLFloat> *_Nonnull longitudeDegrees;

Swift

var longitudeDegrees: NSNumber & SDLFloat { get set }

latitudeDegrees

latitude degrees

Required, Float, -90 - 90

Objective-C

@property (readwrite, strong, nonatomic)
    NSNumber<SDLFloat> *_Nonnull latitudeDegrees;

Swift

var latitudeDegrees: NSNumber & SDLFloat { get set }

utcYear

utc year

Optional, Integer, 2010 - 2100

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcYear;

Swift

var utcYear: (NSNumber & SDLInt)? { get set }

utcMonth

utc month

Optional, Integer, 1 - 12

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcMonth;

Swift

var utcMonth: (NSNumber & SDLInt)? { get set }

utcDay

utc day

Optional, Integer, 1 - 31

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcDay;

Swift

var utcDay: (NSNumber & SDLInt)? { get set }

utcHours

utc hours

Optional, Integer, 0 - 23

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcHours;

Swift

var utcHours: (NSNumber & SDLInt)? { get set }

utcMinutes

utc minutes

Optional, Integer, 0 - 59

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcMinutes;

Swift

var utcMinutes: (NSNumber & SDLInt)? { get set }

utcSeconds

utc seconds

Optional, Integer, 0 - 59

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *utcSeconds;

Swift

var utcSeconds: (NSNumber & SDLInt)? { get set }

compassDirection

Optional, Potential Compass Directions

Objective-C

@property (readwrite, strong, nonatomic, nullable)
    SDLCompassDirection compassDirection;

Swift

var compassDirection: SDLCompassDirection? { get set }

pdop

The 3D positional dilution of precision.

@discussion If undefined or unavailable, then value shall be set to 0

Required, Float, 0.0 - 1000.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *pdop;

Swift

var pdop: (NSNumber & SDLFloat)? { get set }

hdop

The horizontal dilution of precision

@discussion If undefined or unavailable, then value shall be set to 0

Required, Float, 0.0 - 1000.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *hdop;

Swift

var hdop: (NSNumber & SDLFloat)? { get set }

vdop

the vertical dilution of precision

@discussion If undefined or unavailable, then value shall be set to 0

Required, Float, 0.0 - 1000.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *vdop;

Swift

var vdop: (NSNumber & SDLFloat)? { get set }

actual

What the coordinates are based on

@discussion YES, if coordinates are based on satellites. NO, if based on dead reckoning.

Optional, Boolean

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLBool> *actual;

Swift

var actual: (NSNumber & SDLBool)? { get set }

satellites

The number of satellites in view

Optional, Integer, 0 - 31

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLInt> *satellites;

Swift

var satellites: (NSNumber & SDLInt)? { get set }

dimension

The supported dimensions of the GPS

Optional

Objective-C

@property (readwrite, strong, nonatomic, nullable) SDLDimension dimension;

Swift

var dimension: SDLDimension? { get set }

altitude

Altitude in meters

Optional, Float, -10000.0 - 10000.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *altitude;

Swift

var altitude: (NSNumber & SDLFloat)? { get set }

heading

Heading based on the GPS data.

@discussion North is 0, East is 90, etc. Resolution is 0.01

Optional, Float, 0.0 - 359.99

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *heading;

Swift

var heading: (NSNumber & SDLFloat)? { get set }

speed

Speed in KPH

Optional, Float, 0.0 - 500.0

Objective-C

@property (readwrite, strong, nonatomic, nullable) NSNumber<SDLFloat> *speed;

Swift

var speed: (NSNumber & SDLFloat)? { get set }
View on GitHub.com
Previous Section Next Section