A traveling work machine comprising: a machine body provided with a travel apparatus (11, 12); a position detection unit configured to detect position information of the machine body on the basis of a positioning signal of a navigation satellite; a travel trajectory obtainment unit configured to obtain a travel trajectory of the machine body on the basis of detection, over time, of the position information; a target heading calculation unit configured to calculate a target heading on the basis of the travel trajectory; a maneuvering control unit configured to control the travel apparatus (11, 12) to maneuver along the target heading; a display unit configured to display information pertaining to setting of the target heading; and a single operating tool (23, 49) configured to set both a start point (Ts) and an end point (Tf) of the travel trajectory obtained when calculating the target heading, characterized in that: the target heading calculation unit is configured to set the end point (Tf) through an operation of the operating tool (23, 49) after the start point (Ts) has been set through an operation of the operating tool (23, 49) and the machine body has traveled a pre-set distance after the start point (Ts) has been set; and when setting of the end point (Tf) through an operation of the operating tool (23, 49) has become possible, the display unit is configured to display an indication that the setting of the end point (Tf) is possible. a machine body provided with a travel apparatus (11, 12); a position detection unit configured to detect position information of the machine body on the basis of a positioning signal of a navigation satellite; a travel trajectory obtainment unit configured to obtain a travel trajectory of the machine body on the basis of detection, over time, of the position information; a target heading calculation unit configured to calculate a target heading on the basis of the travel trajectory; a maneuvering control unit configured to control the travel apparatus (11, 12) to maneuver along the target heading; a display unit configured to display information pertaining to setting of the target heading; and a single operating tool (23, 49) configured to set both a start point (Ts) and an end point (Tf) of the travel trajectory obtained when calculating the target heading, characterized in that: the target heading calculation unit is configured to set the end point (Tf) through an operation of the operating tool (23, 49) after the start point (Ts) has been set through an operation of the operating tool (23, 49) and the machine body has traveled a pre-set distance after the start point (Ts) has been set; and when setting of the end point (Tf) through an operation of the operating tool (23, 49) has become possible, the display unit is configured to display an indication that the setting of the end point (Tf) is possible. the target heading calculation unit is configured to set the end point (Tf) through an operation of the operating tool (23, 49) after the start point (Ts) has been set through an operation of the operating tool (23, 49) and the machine body has traveled a pre-set distance after the start point (Ts) has been set; and when setting of the end point (Tf) through an operation of the operating tool (23, 49) has become possible, the display unit is configured to display an indication that the setting of the end point (Tf) is possible.