def METHOD_NAME(line):
  #
  # find segment terminator string
  #
  if find(line, '-1000 -1000') == 0:
    return 'LIFT\n'
  #
  # try to find lines that contain lat/lon pairs
  # once found swap them
  #
  pos_list = split(line)
  # not a position pair
  if len(pos_list) != 2:
    return ''
  # not a position pair
  if pos_list[0][0].isalpha():
    return ''
  # must be a pair
  new_line = pos_list[1] + ' ' + pos_list[0] + '\n'
  return new_line
  return ''