SGRecord


Stores location data for any particular record.

Conforms to: SGRecordAnnotation
Superclass: NSObject
Declared In: SGRecord.h

Discussion

This class provides the standard functionality that allows a record from SimpleGeo to be placed inside of a SGARView while acting as a stand-alone object for record retrieval and updates used by SGLocationService . This object is valid wherever SGRecordAnnotation or //simplegeo/ooc/intf/SGAnnotation is required.

It is recommended that this class be subclassed because most records stored in SimpleGeo will have user-defined properties. See SGGeoJSONEncoder.



Methods

-updateRecordWithGeoJSONObject:

Updates the record using the GeoJSONOBject. See updateRecordWithGeoJSONObject: .


updateRecordWithGeoJSONObject:


Updates the record using the GeoJSONOBject. See updateRecordWithGeoJSONObject:.

- (void) updateRecordWithGeoJSONObject:(NSDictionary*)dictionary; 

Properties

created

See SGRecordAnnotation

expires

See SGRecordAnnotation

latitude

The latitude of the record.

layer

See SGRecordAnnotation

layerLink

A link to the layer where this record is kept.

longitude

The longitude of the record.

properties

Extra properties that are not defined, nor required by SimpleGeo.

recordId

See SGRecordAnnotation

selfLink

A link to the record.

type

See SGRecordAnnotation


created


See SGRecordAnnotation

@property (
    nonatomic,
    assign) NSTimeInterval created; 


expires


See SGRecordAnnotation

@property (
    nonatomic,
    assign) NSTimeInterval expires; 


latitude


The latitude of the record.

@property (
    nonatomic,
    assign) double latitude; 


layer


See SGRecordAnnotation

@property (
    nonatomic,
    retain) NSString* layer; 
Discussion

When a new record object is created, the layer property is assigned the bundle identifier.


layerLink


A link to the layer where this record is kept.

@property (
    nonatomic,
    retain) NSString* layerLink; 
Discussion

The initial value is nil. When the object is updated from a GeoJSON object recieved from SimpleGeo, this property will be set.


longitude


The longitude of the record.

@property (
    nonatomic,
    assign) double longitude; 


properties


Extra properties that are not defined, nor required by SimpleGeo.

@property (
    nonatomic,
    retain) NSMutableDictionary* properties; 
Discussion

This dictionary stores and updates properties (e.g. name, age, color) that are not required by SimpleGeo. It is updated by updateRecordWithGeoJSONObject:.


recordId


See SGRecordAnnotation

@property (
    nonatomic,
    retain) NSString* recordId; 


selfLink


A link to the record.

@property (
    nonatomic,
    retain) NSString* selfLink; 
Discussion

The initial value is nil. When the object is updated from a GeoJSON object recieved from SimpleGeo, this property will be set.


type


See SGRecordAnnotation

@property (
    nonatomic,
    retain) NSString* type; 

© SimpleGeo Last Updated: 03/31/2010