def get_relations_from_api(api=Rosemary::API.new)
      api.get_relations_referring_to_object(type, self.id.to_i)
    end
def get_relations_from_api(api=Rosemary::API.new)
      api.get_relations_referring_to_object(type, self.id.to_i)
    end
Get all relations from the API that have his object as members.

 The optional parameter is an Rosemary::API object. If none is specified
 the default OSM API is used.

 Returns an array of Relation objects or an empty array.