import csv


def get_sites(path):
    """
    Load cell site locations.

    Parameters
    ----------
    path : string
        path for cell site data.

    Returns
    -------
    sites : list of dicts
        Contains the site_id, and then an x and y coordinate.

    """
    sites = []

    with open(path, 'r') as source:
        reader = csv.DictReader(source)
        for item in reader:
            sites.append({
                'type': 'Feature',
                'geometry':{
                    'type': 'Point',
                    'coordinates': (float(item['X']), float(item['Y'])),
                },
                'properties':{
                    'site_id': item['Sitengr'],
                    'pcd_sector': item['pcd_sector'],
                    'Cell Site': 'Cell Site',
                    'b': 'b',
                },
            })

    return sites