There can be no question that railway corporations are subject to police regulations as well as private citizens. The general assembly, when the public exigencies require it, has power to regulate corporations in their franchises so as to provide for the public safety. The exercise of this right in no manner interferes with or impairs the powers conferred by their acts of incorporation. The G. and G. U. R. R. Co. v. Loomis, 13 Ill. 548; Thorpe v. Rutland and Burlington R. R. 27 Ver. 140.
Under this power, it has been held that the legislature may require railroad corporations, notwithstanding n.o such right ihas been reserved in the charters, to fence their tracks, to put in cattle guards, to place upon their engines a bell, and to do many other things for the protection of life and property. This power is inherent in the State, and it can not part irrevocably Avith its control over that which is for the health, safety and Avelfare of society.
But such regulations must be what they purport to be, police regulations, and must be reasonable when applied to corporations or individuals. What are reasonable regulations^,; and Avhat are subjects of police powers, must necessarily be judicial questions. The law-making power is the sole judge when the necessity exists, and when, if at all, it will exercise the right to enact such laws.
Like other powers of government, there are constitutional limitations to its exercise. It is not Avithin the power of the general assembly, under the pretense of exercising the police poAver of the'State, to enact laws not necessary to the preser-, ATation of the health and safety of the community that will be oppressi\re and burdensome upon the citizen. If it should! prohibit that which is harmless in itself, or command that tol be done Avhich does not tend to promote the health, safety Avelfare of society, it Avould be an unauthorized exercise of power, and it Avould be the duty of the courts to declare such legislation void.