As long as the photos are taken from public property, I don't see any problem!
UP just made an agreement that photos can be taken from the platforms of their stations near Chicago of METRA trains (that UP operate). But if is on private property, the photograhers must first get permission.