ArcGIS Runtime SDK for iOS: AGSLocation.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSLocation.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18 
19 #import <ArcGIS/AGSObject.h>
20 #import <CoreLocation/CLLocation.h>
21 
22 @class AGSPoint;
23 
34 @interface AGSLocation : AGSObject
35 
36 
37 
38 #pragma mark -
39 #pragma mark initializers
40 
41 
42 
52 -(instancetype)initWithPosition:(AGSPoint*)position horizontalAccuracy:(double)horizontalAccuracy velocity:(double)velocity course:(double)course lastKnown:(BOOL)lastKnown;
53 
65 -(instancetype)initWithPosition:(AGSPoint*)position
66  timestamp:(NSDate*)timestamp
67  horizontalAccuracy:(double)horizontalAccuracy
68  verticalAccuracy:(double)verticalAccuracy
69  velocity:(double)velocity
70  course:(double)course
71  lastKnown:(BOOL)lastKnown;
72 
83 +(instancetype)locationWithPosition:(AGSPoint*)position horizontalAccuracy:(double)horizontalAccuracy velocity:(double)velocity course:(double)course lastKnown:(BOOL)lastKnown;
84 
96 +(instancetype)locationWithPosition:(AGSPoint*)position
97  timestamp:(NSDate*)timestamp
98  horizontalAccuracy:(double)horizontalAccuracy
99  verticalAccuracy:(double)verticalAccuracy
100  velocity:(double)velocity
101  course:(double)course
102  lastKnown:(BOOL)lastKnown;
103 
110 +(AGSLocation*)locationWithCLLocation:(CLLocation*)cllocation;
111 
112 #pragma mark -
113 #pragma mark properties
114 
118 @property (nonatomic, assign, readonly) double course;
119 
123 @property (nonatomic, assign, readonly) double horizontalAccuracy;
124 
128 @property (nonatomic, assign, readonly) BOOL lastKnown;
129 
133 @property (nullable, nonatomic, strong, readonly) AGSPoint *position;
134 
138 @property (nonatomic, assign, readonly) double velocity;
139 
143 @property (nonatomic, strong, readonly) NSDate *timestamp;
144 
148 @property (nonatomic, assign, readonly) double verticalAccuracy;
149 
150 #pragma mark -
151 #pragma mark methods
152 
153 
154 @end
Represents a location update provided by a location datasource.
Definition: AGSLocation.h:34
BOOL lastKnown
Definition: AGSLocation.h:128
double course
Definition: AGSLocation.h:118
double horizontalAccuracy
Definition: AGSLocation.h:123
double verticalAccuracy
Definition: AGSLocation.h:148
double velocity
Definition: AGSLocation.h:138
Definition: AGSObject.h:21
NSDate * timestamp
Definition: AGSLocation.h:143
A location defined by x and y (and optionally z) coordinates.
Definition: AGSPoint.h:57