def getCanonicalTrips(uid, get_representative=False): # number returned isnt used
    """
        uid is a UUID object, not a string
    """
    # canonical_trip_list = []
    # x = 0
    # if route clusters return nothing, then get common routes for user
    #clusters = get_routeCluster_db().find_one({'$and':[{'user':uid},{'method':'lcs'}]})
    # c = get_routeCluster_db().find_one({'$and':[{'user':uid},{'method':'lcs'}]})

    logging.debug('UUID for canonical %s' % uid)
    info = get_clusters_info(uid)
    cluster_json_list = []
    for (cluster, rt) in info:
      json_dict = dict()
      json_dict["representative_trip"] = rt
      json_dict["start_point_distr"] = cluster[2]
      json_dict["end_point_distr"] = cluster[3]
      json_dict["start_time_distr"] = cluster[0]
      json_dict["end_time_distr"] = cluster[1]
      json_dict["confirmed_mode_list"] = cluster[4]
      cluster_json_list.append(json_dict)
    toRet = cluster_json_list
    return toRet.__iter__()