Skip to main content

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

AttributeTypeDescription
feed_typeclass = GeoRSSFeedThe 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

NameTypeDescription
objobjectThe object providing the contextual data for the feed generation.

Returns

TypeDescription
dictA 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

NameTypeDescription
itemobjectThe specific content item being processed for the feed.

Returns

TypeDescription
dictA dictionary containing the 'geometry' object for a specific feed item.