use get_distance_matrix