summaryrefslogtreecommitdiff
path: root/SmartDeviceLink/SDLLocationCoordinate.h
blob: abc0beefeef47cdccc90ce45ebe6ae81bbdba6e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
//  SDLLocationCoordinate.h
//

#import "SDLRPCStruct.h"

NS_ASSUME_NONNULL_BEGIN

/**
 *  Describes a coordinate on earth
 */
@interface SDLLocationCoordinate : SDLRPCStruct

/**
 *  Convenience init for location coordinates
 *
 *  @param latitudeDegrees Latitude of the location
 *  @param longitudeDegrees Latitude of the location
 *  @return A SDLLocationCoordinate object
 */
- (instancetype)initWithLatitudeDegrees:(float)latitudeDegrees longitudeDegrees:(float)longitudeDegrees;

/**
 *  Latitude of the location
 *
 *  Required, Double -90 - 90
 */
@property (copy, nonatomic) NSNumber<SDLFloat> *latitudeDegrees;

/**
 *  Latitude of the location
 *
 *  Required, Double -180 - 180
 */
@property (copy, nonatomic) NSNumber<SDLFloat> *longitudeDegrees;

@end

NS_ASSUME_NONNULL_END