Section 34. Notice of the hearing upon such petition shall be given to the towns where the ways are situated, and to the owners or occupants of the land affected thereby, in like manner as notice of the laying out of highways is given.