Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
iOS Documentation
SDLGPSData

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 (nonatomic, strong) NSNumber<SDLFloat> *_Nonnull longitudeDegrees;

Swift

var longitudeDegrees: NSNumber & SDLFloat { get set }

latitudeDegrees

latitude degrees

Required, Float, -90 - 90

Objective-C

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

Swift

var latitudeDegrees: NSNumber & SDLFloat { get set }

utcYear

utc year

Optional, Integer, 2010 - 2100

Objective-C

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

Swift

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

utcMonth

utc month

Optional, Integer, 1 - 12

Objective-C

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

Swift

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

utcDay

utc day

Optional, Integer, 1 - 31

Objective-C

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

Swift

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

utcHours

utc hours

Optional, Integer, 0 - 23

Objective-C

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

Swift

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

utcMinutes

utc minutes

Optional, Integer, 0 - 59

Objective-C

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

Swift

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

utcSeconds

utc seconds

Optional, Integer, 0 - 59

Objective-C

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

Swift

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

compassDirection

Optional, Potential Compass Directions

Objective-C

@property (nonatomic, strong, 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 (nonatomic, strong, 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 (nonatomic, strong, 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 (nonatomic, strong, 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 (nonatomic, strong, 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 (nonatomic, strong, nullable) NSNumber<SDLInt> *satellites;

Swift

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

dimension

The supported dimensions of the GPS

Optional

Objective-C

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

Swift

var dimension: SDLDimension? { get set }

altitude

Altitude in meters

Optional, Float, -10000.0 - 10000.0

Objective-C

@property (nonatomic, strong, 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 (nonatomic, strong, nullable) NSNumber<SDLFloat> *heading;

Swift

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

speed

Speed in KPH

Optional, Float, 0.0 - 500.0

Objective-C

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

Swift

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

shifted

True, if GPS lat/long, time, and altitude have been purposefully shifted (requires a proprietary algorithm to unshift). False, if the GPS data is raw and un-shifted. If not provided, then value is assumed False.

Optional, BOOL

Objective-C

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

Swift

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