No building permit shall be issued for any such establishment within a distance of 500 feet of any school, public or private, religious institution, hospital, library, park, nursing home, extended-care facility, alternate care housing, or any similar institution or other place of public assembly designed for occupancy by more than 50 persons, said distance to be measured in a straight line along or across a street between the nearest points of each of the lots or premises, regardless of the district where either premises is located.