Inherits from NSObject
Conforms to OSAnnotation
Declared in OSPlacemark.h

Overview

  • A wrapper around CLPlacemark that implements the OSAnnotation protocol. *
  • This class is not a subclass of CLPlacemark because CLPlacemark’s constructors are private apart from initWithPlacemark: and the properties are read-only.

Tasks

Specifying co-ordinates

Properties

CLPlacemark

@property (nonatomic, strong, readonly) *CLPlacemark

county

@property (nonatomic, copy, readonly) NSString *county

fullPlacemarkType

This property returns the expanded description in capitals. R is expressed as ROMAN, W as WATER, and H as HILL. X is UNKNOWN

@property (nonatomic, copy, readonly) NSString *fullPlacemarkType

Declared In

OSPlacemark.h

gridPoint

The center point of the annotation, as an OSGridPoint. The implementation of this property must be KVO-compliant. If this returns a valid OSGridPoint, it is used instead of the coordinate.

@property (nonatomic, assign, readonly) OSGridPoint gridPoint

Declared In

OSAnnotation.h

name

@property (nonatomic, copy, readonly) NSString *name

placemarkType

This property returns the single/double character code listed above

@property (nonatomic, copy, readonly) NSString *placemarkType

Declared In

OSPlacemark.h

Instance Methods

initWithName:type:county:gridPoint:

- (id)initWithName:(NSString *)name type:(NSString *)type county:(NSString *)county gridPoint:(OSGridPoint)gridPoint

initWithPlacemark:

- (id)initWithPlacemark:(CLPlacemark *)p