SGRecord |
Stores location data for any particular record.
Conforms to: SGRecordAnnotation
Superclass: NSObject
Declared In: SGRecord.h
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.
Updates the record using the GeoJSONOBject. See updateRecordWithGeoJSONObject: .
updateRecordWithGeoJSONObject: |
Updates the record using the GeoJSONOBject. See updateRecordWithGeoJSONObject:.
- (void) updateRecordWithGeoJSONObject:(NSDictionary*)dictionary;
See SGRecordAnnotation
See SGRecordAnnotation
The latitude of the record.
See SGRecordAnnotation
A link to the layer where this record is kept.
The longitude of the record.
Extra properties that are not defined, nor required by SimpleGeo.
See SGRecordAnnotation
A link to the record.
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;
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;
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;
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;
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