There could be an app that will message the phone if the user is in the area of an intersection where a train is approaching.