app/models/export/netex_generic.rb
def tags_for_lines line_ids
      tags = Hash.new { |h,k| h[k] = Set.new }

      line_ids.each do |line_id|
        tags_for(line_id).each do |key, value|
          tags[key] << value
        end
      end

      # Remove multiple values
      tags.map do |key, set|
        [ key, set.first ] if set.size == 1
      end.compact.to_h
    end
# Returns tags for several lines.
# Returns only uniq values accross all given lines
Returns tags for several lines.
Returns only uniq values accross all given lines
Returns tags for several lines . Returns only uniq values accross all given lines
def tags_for_lines line_ids
      tags = Hash.new { |h,k| h[k] = Set.new }
      line_ids.each do |line_id|
        tags_for(line_id).each do |key, value|
          tags[key] << value
        end
      end
      tags.map do |key, set|
        [ key, set.first ] if set.size == 1
      end.compact.to_h
    end
def tags_for_lines line_ids tags = Hash . new { | h , k | h [ k ] = Set . new } line_ids . each do | line_id | tags_for ( line_id ) . each do | key , value | tags [ key ] << value end end tags . map do | key , set | [ key , set . first ] if set . size == 1 end . compact . to_h end
Returns tags for several lines.
Returns tags for several lines .
# Remove multiple values
line_ids