//
//  JSIEquipmentAnnotation.h
//  EAMNext
//
//  Created by Satish Kumar Jakkula on 10/10/17.
//
//

#import <Foundation/Foundation.h>
#import <MapKit/MapKit.h>
#import "R5OBJECTS.h"

@interface JSIEquipmentAnnotation : NSObject<MKAnnotation>
{
    
}

@property (nonatomic, readonly)     CLLocationCoordinate2D  coordinate;
@property (nonatomic, strong)       NSString                *heading;
@property (nonatomic, strong)       NSString                *subheading;
@property (nonatomic        )       NSInteger               index;
@property (nonatomic, strong)       NSString                *addressString;
@property (nonatomic, readonly)     R5OBJECTS               *equipment;
@property (nonatomic, strong)       NSArray                 *workOrders;

- (id)initWithCoordinate:(CLLocationCoordinate2D) coordinate andObject:(R5OBJECTS *)object withWorkOrders:(NSArray *)workOrders;
- (NSString *)title;
- (NSString *)subtitle;

@end
