Except as provided in section 5-25, no person may excavate in a street, highway, public space, a private easement of an operator, or near the location of a utility installed on the premises of a customer served by such utility, or demolish a building without having first ascertained in the manner prescribed in sections 5-23 and 5-24 the location of all underground utilities in the area that would be affected by the proposed excavation or demolition. The city shall maintain a list of all underground utilities and plats or maps showing their location.