import csv


def get_coords(csvfilename):
    """
    Get Coordinates and building_types from csvfilename
    :param csvfilename: filename of coordinates csv
    :return: list of ['lon','lat','building_type']
    """
    coords = []
    with open(csvfilename, 'r') as csv_coords_f:
        coords_rd = csv.DictReader(csv_coords_f)
        coords += [[float(coord['lon']), float(coord['lat']), str(coord['building_type'])] 
               for coord in coords_rd]
        return coords