# get ways
# find which ways are needed
segment_ids = segments.collect {|segment| segment.id }
ways = Array.new
if segment_ids.length > 0
# get ways
# find which ways are needed
segment_ids = segments.collect {|segment| segment.id }
ways = Array.new
if segment_ids.length > 0