def location_list(arg):
 if isinstance(arg, tuple):
  return latlng(arg)
 else:
  return '|'.join([latlng(location) for location in as_list(arg)])

def location_list ( arg ) : if isinstance ( arg , tuple ) : return latlng ( arg ) else : return '|' . join ( [ latlng ( location ) for location in as_list ( arg ) ] )
joins a list of locations into a pipe separated string .