you must look both ways left and right
not less than 15 feet
A railroad crossing is where the railway tracks cross over a road. It is where a driver of a vehicle must take heed of warning lights that a train is approaching, and the driver must wait until it is safe to proceed over the crossing. In Britain, all railway crossings are either gated or have a barrier, both being automated.
Upon approaching a railroad crossing with the gates lowered, you must stop no less than 15 feet from the tracks. This distance ensures your safety and allows for enough space for trains to pass. Always be vigilant and wait until the gates are fully raised and the lights have stopped flashing before proceeding.
All US states require that you stop prior to entering the crossing, and a train is approaching the crossing. If there are also crossing gates, you must not go through the crossing when the gates are either being lowered or raised. If there are no gates, you are allowed to proceed through the crossing after stopping only after you have looked and determined no train is approaching and it is safe to cross. If there are gates, you are not allowed to go around the gates legally unless a railroad employee or a police officer instructs you that it is safe to do so.
When you are the vehicle closest to the rails at a railroad crossing, you must stop when a train is approaching. This is crucial for your safety and the safety of others, as trains can be much closer and faster than they appear. Always look for warning signals, such as lights or gates, and never attempt to cross the tracks until it is completely safe. Remember, the law requires you to stop at least 15 feet from the tracks when a train is present.
20 feet
When a red light flashes at a railroad crossing, you must stop and wait until the light stops flashing and the way is clear before proceeding.
50 feet
15 and 50 feet
You must stop within 50 feet but no closer than 15 feet of the railroad crossing. Never stop on railroad tracks or go when the gate is down.
you keep speeding
The Pennsylvania's Driver's Manual states that driver's cannot park within 50 feet of the nearest rail of a railroad crossing.