Section 22. The department may from time to time require railroad and railway corporations to install and maintain at such places upon the railroad or railway premises as it shall designate such block or other signals or devices as it shall approve for the purpose of safeguarding public travel.