Any corporation formed for the purpose of constructing a road, ditch, tunnel, or railroad may cause such examination and survey as may be necessary to the selection of the most advantageous route and, for such purpose, by its officers, agents, or servants may enter upon the lands of any person or corporation, but subject to liability for all actual damages which are occasioned thereby.