def get_id_of_pos(dict_pos, pos):
    """
    Returns id to given position

    Parameters
    ----------
    dict_pos : dict
        Dict holding building node ids as key and shapely geometry points as
        values
    pos : object
        Shapely geometry point object (2d)

    Returns
    -------
    id : int
        Id of key of dict_pos with position pos
    """

    id = None

    for key in dict_pos.keys():
        if dict_pos[key] == pos:
            id = key

    return id