If the city council of a city, or a town, accepts this section or has accepted the corresponding provisions of earlier laws, the board or officers authorized to lay out highways or town ways may reserve spaces between the side lines thereof for the use of horseback riders, for bicycle paths or for street railways, except such as may be operated by steam, for drains, sewers and electric wires, for trees and grass, and for planting. A pedestrian who is injured by a street railway car within or upon any of the spaces so reserved for street railways shall have the rights of a traveler on the highway.
Mass. Gen. Laws ch. 82, § 34