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
SDLLocationCoordinate

SDLLocationCoordinate Class Reference

Section Contents

Overview

Describes a coordinate on earth

-initWithLatitudeDegrees:longitudeDegrees:

Convenience init for location coordinates

Objective-C

- (nonnull instancetype)initWithLatitudeDegrees:(float)latitudeDegrees
                               longitudeDegrees:(float)longitudeDegrees;

Swift

init(latitudeDegrees: Float, longitudeDegrees: Float)

Parameters

latitudeDegrees

Latitude of the location

longitudeDegrees

Latitude of the location

Return Value

A SDLLocationCoordinate object

latitudeDegrees

Latitude of the location

Required, Double -90 - 90

Objective-C

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

Swift

@NSCopying var latitudeDegrees: NSNumber & SDLFloat { get set }

longitudeDegrees

Latitude of the location

Required, Double -180 - 180

Objective-C

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

Swift

@NSCopying var longitudeDegrees: NSNumber & SDLFloat { get set }
View on GitHub.com
Previous Section Next Section