MapsIndoors iOS SDK V3
Loading...
Searching...
No Matches
MPGeometryContainmentMetadata.h
Go to the documentation of this file.
1//
2// MPGeometryContainmentMetadata.h
3// MapsIndoors
4//
5// Created by Michael Bech Hansen on 31/05/2018.
6// Copyright © 2018 MapsPeople A/S. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10#import <CoreLocation/CoreLocation.h>
11
12
13@interface MPGeometryContainmentMetadata : NSObject
14
15@property (nonatomic, strong) NSObject* geoSpatialObject; // For now only MPLocation can be here.
16@property (nonatomic) BOOL isContained; // Inside polygon and not in a hole.
17@property (nonatomic) BOOL isContainedInHole; // Inside a polygon hole
18@property (nonatomic) CLLocationCoordinate2D coordinate; // If isContained actual coordinate, if not contained nearest coordinate on boundary.
19@property (nonatomic) CLLocationDistance distance; // 0 if contained, else distance to closest point.
20
21+ (instancetype) newWithGeoSpatialObject:(NSObject*)gso;
22- (instancetype) initWithGeoSpatialObject:(NSObject*)gso;
23
24@end
Definition MPGeometryContainmentMetadata.h:14
BOOL isContainedInHole
Definition MPGeometryContainmentMetadata.h:17
BOOL isContained
Definition MPGeometryContainmentMetadata.h:16
CLLocationCoordinate2D coordinate
Definition MPGeometryContainmentMetadata.h:18
NSObject * geoSpatialObject
Definition MPGeometryContainmentMetadata.h:15
CLLocationDistance distance
Definition MPGeometryContainmentMetadata.h:19