The municipal authorities of any city except a city of the first class may permit any railroad company to lay and construct its tracks along and upon any street or highway or above the street or highway by means of an elevated structure and may contract with such company, fixing the terms and conditions as to maintenance of crossings, speed of trains and payment of consideration for such use and may do all things necessary to carry out such contract and any such contract made prior to March thirtieth, one thousand nine hundred and five, is hereby ratified and confirmed.
No such railroad shall be constructed along or above any such street or highway until the company shall have acquired the right of the owners abutting thereon by agreement or condemnation proceedings.
N.J.S. § 48:12-53