GeoDjango has its own Feed subclass that may embed location information
in RSS/Atom feeds formatted according to either the Simple GeoRSS or
W3C Geo standards. Because GeoDjango’s syndication API is a superset of
Django’s, please consult Django’s syndication documentation for details on general usage.

In addition to methods provided by
the django.contrib.syndication.feeds.Feed
base class, GeoDjango’s Feed class provides
the following overrides. Note that these overrides may be done in multiple ways:

fromdjango.contrib.gis.feedsimportFeedclassMyFeed(Feed):# First, as a class attribute.geometry=...item_geometry=...# Also a function with no argumentsdefgeometry(self):...defitem_geometry(self):...# And as a function with a single argumentdefgeometry(self,obj):...defitem_geometry(self,item):...