def get_loco_connlines(track, loco):
    """ Returns a dict of lines representing each locos base connections.
    """
    # Build loco to base connection lines
    loco_connlines = []
    for conn in [c for c in loco.conns.values() if c.connected()]:
        linepath = []
        linepath.append({'lat': conn.conn_to.coords.lat,
                         'lng': conn.conn_to.coords.long})
        linepath.append({'lat': loco.coords.lat,
                         'lng': loco.coords.long})

        loco_connlines.append(linepath)

    return loco_connlines