MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPLocation.h
Go to the documentation of this file.
1//
2// Location.h
3// MapsIndoors SDK for iOS
4//
5// Created by Daniel Nielsen on 7/29/13.
6// Copyright (c) 2017 MapsPeople A/S. All rights reserved.
7//
8
9#define kLocationPropertyDescription @"description"
10#define kLocationPropertyDirections @"directions"
11#define kLocationPropertyImage @"image"
12#define kLocationPropertyOpeningHours @"openingHours"
13#define kLocationPropertyContact @"contact"
14#define kLocationPropertyPhone @"phone"
15#define kLocationPropertyDate @"date"
16#define kLocationPropertyEmail @"email"
17#define kLocationPropertyFax @"fax"
18#define kLocationPropertyTags @"_tags"
19#define kLocationPropertyUrl @"www"
20#define kLocationPropertyVideo @"video"
21
22#import "MPJSONModel.h"
24#import <UIKit/UIKit.h>
25
26@class GMSCoordinateBounds;
27@class GMSMarker;
28@class MPLiveUpdate;
29@class MPLocationField;
31@class MPPoint;
32@protocol MPLocationField;
33
37@interface MPLocation : MPJSONModel
44- (nullable instancetype) initWithPoint:(nullable MPPoint*)point andName:(nullable NSString*)name DEPRECATED_MSG_ATTRIBUTE("Use MPLocationUpdate instead");
49- (nullable instancetype) initWithLocation:(nullable MPLocation*)location DEPRECATED_MSG_ATTRIBUTE("Use MPLocationUpdate instead");
50
54@property (nonatomic, strong, nullable, readonly) NSString *locationId;
58@property (nonatomic, strong, nullable, readonly) NSString *type;
63@property (nonatomic, strong, nullable, readonly) NSNumber<Optional> *activeFrom DEPRECATED_ATTRIBUTE;
68@property (nonatomic, strong, nullable, readonly) NSNumber<Optional> *activeTo DEPRECATED_ATTRIBUTE;
72@property (nonatomic, strong, nullable, readonly) NSString<Optional> *venue;
76@property (nonatomic, strong, nullable, readonly) NSString<Optional> *building;
81@property (nonatomic, strong, nullable, readonly) NSString<Optional> *roomId DEPRECATED_MSG_ATTRIBUTE("Use externalId instead");
85@property (nonatomic, strong, nullable, readonly) NSString<Optional> *externalId;
89@property (nonatomic, strong, nullable, readonly) NSString<Optional> *descr;
94@property (nonatomic, strong, nullable, readonly) NSDictionary<NSString*, MPLocationField*><Optional, MPLocationField> *fields;
100- (nullable MPLocationField*) getFieldForKey:(nonnull NSString*)key NS_SWIFT_NAME(getField(forKey:));
104@property (nonatomic, strong, nullable, readonly) NSArray<NSString*> *aliases;
108@property (nonatomic, strong, nullable, readonly) NSString *name;
112@property (nonatomic, strong, nullable, readonly) NSNumber* floor;
116@property (nonatomic, strong, nullable, readonly) NSString* floorName;
120@property (nonatomic, strong, nullable, readonly) NSMutableDictionary *categories;
125@property (nonatomic, strong, nullable, readonly) NSMutableDictionary *properties DEPRECATED_MSG_ATTRIBUTE("Use fields dictionary instead");
129//@property NSString *type;
133@property (nonatomic, strong, nullable, readonly) MPPoint<Ignore> *geometry;
137@property (nonatomic, strong, nullable, readonly) GMSMarker *marker DEPRECATED_MSG_ATTRIBUTE("Getting a marker from a location is not supported anymore, if you need to change the appearance of a location, create MPDisplaySettings for this");
141@property (nonatomic, strong, nullable, readonly) UIImage *image DEPRECATED_MSG_ATTRIBUTE("Use -fields to get properties like image, description etc.");
142
146@property (nonatomic, strong, nullable, readonly) NSString* imageURL;
150@property (nonatomic, strong, nullable, readonly) NSNumber* sourceId;
151
155@property (nonatomic, strong, nullable, readonly) UIImage* icon;
156
160@property (nonatomic, strong, nullable, readonly) NSURL* iconUrl;
164@property (nonatomic, readonly) MPLocationBaseType baseType;
165
169@property (nonatomic, strong, nullable, readonly) NSArray<NSString*>* restrictions;
170
174- (nullable MPPoint*)getPoint DEPRECATED_MSG_ATTRIBUTE("Use -getGeometry instead.");
175
179- (nullable MPLocationProperty*)getProperty:(nullable NSString*)propertyType DEPRECATED_MSG_ATTRIBUTE("Use -getFields instead.");
183- (nullable GMSCoordinateBounds*) getCoordinateBounds;
187- (nullable NSObject*)getLiveValueForKey:(nonnull NSString*)key domainType:(nonnull NSString*)domainType;
191- (nullable MPLiveUpdate*) getLiveUpdateForDomainType:(nonnull NSString*)domainType;
192
196@property (nonatomic, readonly) BOOL isIndoors;
197
201@property (nonatomic, readonly) BOOL isBookable;
202
203@end
MPLocationBaseType
Definition MPLocationBaseType.h:12
@ building
Definition NSString+CustomFont.h:50
@ image
Definition NSString+CustomFont.h:45
Model for a Live Update. Used in MPLiveDataManagerDelegate and MPLocation::getLiveUpdate().
Definition MPLiveUpdate.h:17
Definition MPLocationField.h:21
Definition MPLocation.h:38
NSString< Optional > * roomId
Definition MPLocation.h:81
NSString * imageURL
Definition MPLocation.h:146
NSString * type
Definition MPLocation.h:58
NSNumber< Optional > * activeFrom
Definition MPLocation.h:63
MPPoint< Ignore > * geometry
Definition MPLocation.h:133
NSString< Optional > * externalId
Definition MPLocation.h:85
NSString * locationId
Definition MPLocation.h:54
NSNumber< Optional > * activeTo
Definition MPLocation.h:68
NSMutableDictionary * categories
Definition MPLocation.h:120
BOOL isBookable
Definition MPLocation.h:201
NSArray< NSString * > * aliases
Definition MPLocation.h:104
NSString< Optional > * descr
Definition MPLocation.h:89
BOOL isIndoors
Definition MPLocation.h:196
NSURL * iconUrl
Definition MPLocation.h:160
GMSMarker * marker
Definition MPLocation.h:137
NSMutableDictionary * properties
Definition MPLocation.h:125
NSNumber * sourceId
Definition MPLocation.h:150
NSString< Optional > * venue
Definition MPLocation.h:72
NSString * floorName
Definition MPLocation.h:116
NSNumber * floor
Definition MPLocation.h:112
NSArray< NSString * > * restrictions
Definition MPLocation.h:169
MPLocationBaseType baseType
Definition MPLocation.h:164
nullable MPPoint * getPoint()
nullable GMSCoordinateBounds * getCoordinateBounds()
NSString * name
Definition MPLocation.h:108
NSDictionary< NSString *, MPLocationField * >< Optional, MPLocationField > * fields
Definition MPLocation.h:94
UIImage * icon
Definition MPLocation.h:155
Definition MPLocationProperty.h:15
Definition MPLocationUpdate.h:26
Definition MPPoint.h:23