def get_end_connection(road):
    """
    Returns the intersection that is connected to the end of the road
    :param road: The road that the intersection is connected to
    :type road: Road

    :return: the intersection that is connected to the end of the road
    """
    return road.get_end_connection()