NMSGeoObject.h
1 //
2 // NMSGeoObject.h
3 // NavionicsMobileSDK
4 //
5 // Copyright © 2016 Navionics. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 #import <CoreLocation/CoreLocation.h>
10 #import <UIKit/UIKit.h>
11 #import "NMSEnums.h"
12 
14 @interface NMSGeoObject : NSObject
15 
17 @property(nonatomic,readonly)NMSGeoObjectType type;
18 
20 @property(nonatomic,readonly)CLLocationCoordinate2D position;
21 
23 @property(nonatomic,readonly)UIImage* icon;
24 
29 @property(nonatomic,readonly)NSDictionary* details;
30 
32 @property(nonatomic,readonly)BOOL detailsLoaded;
33 
38 -(void)loadDetailsWithCompletionBlock:(void (^)(NMSGeoObject* detailedObject))completion;
39 
40 @end
NSDictionary * details
The details dictionary After the retrieving, the geo object will contains only the name as details...
Definition: NMSGeoObject.h:29
Abstract class that represents a cartographic object.
Definition: NMSGeoObject.h:14
NMSGeoObjectType type
The type of the geo object.
Definition: NMSGeoObject.h:17
BOOL detailsLoaded
YES if all the detailed data of the object has been loaded.
Definition: NMSGeoObject.h:32
UIImage * icon
The icon representing the geo object symbol.
Definition: NMSGeoObject.h:23
CLLocationCoordinate2D position
The position of the geo object.
Definition: NMSGeoObject.h:20