def find_element(type, id)
      raise ArgumentError.new("type needs to be one of 'node', 'way', and 'relation'") unless type =~ /^(node|way|relation|changeset)$/
      return nil if id.nil?
      begin
        response = get("/#{type}/#{id}")
        response.is_a?(Array ) ? response.first : response
      rescue NotFound
        nil
      end
    end
def find_element(type, id)
      raise ArgumentError.new("type needs to be one of 'node', 'way', and 'relation'") unless type =~ /^(node|way|relation|changeset)$/
      return nil if id.nil?
      begin
        response = get("/#{type}/#{id}")
        response.is_a?(Array ) ? response.first : response
      rescue NotFound
        nil
      end
    end
Get an object ('node', 'way', or 'relation') with specified ID from API.

 call-seq: find_element('node', id) -> Rosemary::Element