import csv


def load_data(filename):
    """
    Load data from csv
    """
    paths = []
    with open(filename) as f:
        reader = csv.DictReader(f)
        for row in reader:
            name_a = row["name_a"]
            lat_a = row["lat_a"]
            lng_a = row["lng_a"]
            name_b = row["name_b"]
            lat_b = row["lat_b"]
            lng_b = row["lng_b"]
            path = [[name_a, lat_a, lng_a], [name_b, lat_b, lng_b]]
            paths.append(path)
    return paths