MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocationUpdate.h
Go to the documentation of this file.
1//
2// MPLocationUpdate.h
3// MapsIndoors
4//
5// Created by Daniel Nielsen on 29/11/2018.
6// Copyright © 2018 MapsPeople A/S. All rights reserved.
7//
8
9#import "MPLocation.h"
10#import "MPLocationField.h"
11#import <CoreLocation/CoreLocation.h>
12#import <Foundation/Foundation.h>
13
15@protocol MPLocationSource;
16
17extern const NSInteger MPLocationUpdateFloorInvalid;
18
19
20NS_ASSUME_NONNULL_BEGIN
21
25@interface MPLocationUpdate : NSObject
26
30@property (nonatomic, readonly) NSInteger sourceId;
34@property (nonatomic, readonly) NSInteger locationId;
38@property (nonatomic, strong) NSString* type;
42@property (nonatomic, strong) NSString* name;
46@property (nonatomic) NSInteger floor;
50@property (nonatomic) CLLocationCoordinate2D position;
54@property (nonatomic, strong) UIImage* icon;
58@property (nonatomic, strong) NSURL* iconUrl;
62@property (nonatomic) CGPoint iconMapAnchor;
63
64- (instancetype)init UNAVAILABLE_ATTRIBUTE;
65
66
73+ (MPLocationUpdate*) updateWithLocation:(MPLocation*) location;
74
82+ (MPLocationUpdate*) updateWithId:(NSInteger)locationId fromSource:(id<MPLocationSource>) locationSource;
83
84
91- (void) addPropertyValue: (NSString*) value forKey:(NSString*) key;
92
98- (void) addCategory: (NSString*) categoryKey;
99
104
105
106@end
107
108NS_ASSUME_NONNULL_END
const NSInteger MPLocationUpdateFloorInvalid
Definition MPLocationDisplayRule.h:22
Definition MPLocation.h:38
Definition MPLocationUpdate.h:26
CGPoint iconMapAnchor
Definition MPLocationUpdate.h:62
NSInteger sourceId
Definition MPLocationUpdate.h:30
instancetype UNAVAILABLE_ATTRIBUTE()
NSString * type
Definition MPLocationUpdate.h:38
NSInteger floor
Definition MPLocationUpdate.h:46
NSURL * iconUrl
Definition MPLocationUpdate.h:58
UIImage * icon
Definition MPLocationUpdate.h:54
CLLocationCoordinate2D position
Definition MPLocationUpdate.h:50
NSString * name
Definition MPLocationUpdate.h:42
MPLocation * location()
NSInteger locationId
Definition MPLocationUpdate.h:34