code: def render(self, data, accepted_media_type=None, renderer_context=None):
          
          data = collections.as_feature(data)
          try:
              return data.geojson
          except AttributeError:
              return super(GeoJSONRenderer, self).render(
                  data, accepted_media_type, renderer_context)
docs: Returns *data* encoded as GeoJSON.