Feed
This is a subclass of the Feed from django.contrib.syndication. This allows users to define a geometry(obj) and/or item_geometry(item) methods on their own subclasses so that geo-referenced information may placed in the feed.
Attributes
| Attribute | Type | Description |
|---|---|---|
| feed_type | class = GeoRSSFeed | The syndication feed class used to render the output, specifically set to GeoRSSFeed to support geographic data. |
Methods
feed_extra_kwargs()
@classmethod
def feed_extra_kwargs(
obj: object
) - > dict
Returns extra keyword arguments for the feed-level GeoRSS element, specifically the geometry defining the feed's spatial extent.
Parameters
| Name | Type | Description |
|---|---|---|
| obj | object | The object providing the contextual data for the feed generation. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the 'geometry' object for the entire feed. |
item_extra_kwargs()
@classmethod
def item_extra_kwargs(
item: object
) - > dict
Returns extra keyword arguments for an individual feed item, specifically the geometry associated with that specific entry.
Parameters
| Name | Type | Description |
|---|---|---|
| item | object | The specific content item being processed for the feed. |
Returns
| Type | Description |
|---|---|
dict | A dictionary containing the 'geometry' object for a specific feed item. |