The telegraph and the railroad were natural partners. The telegraph needed the right of way that the railroads owned and the railroads needed the telegraph to coordinate the arrival and departure of trains to increase the railroads safety, efficiency and save money.
Prior to about 1851 the U.S. railroad system was single-tracked and trains ran on a time-interval system. This system lent itself to two different types of accidents: head-ons and rear-ends. Double-tracked lines, which would have been very expensive, could eliminate head-ons, but not rear-ends, so the railroads would still need to run using a time-interval system. By using the telegraph, which was much less expensive, station managers knew exactly what trains were on the tracks under their supervision. This also lead to shorter reaction times to railroading accidents as well as other issues encountered along the line.
U.S. railroads utilized Morse Telegraphy. This system uses a series of dots and dashes of varying lengths to represent letter and numbers that would be typed out on a Morse key at the senders end and decoded from the sound emited from the Morse key at the recievers end.
Here are the final coords in Morse code:
_. / ..._. / _ _.. / ..._. / _________ / _.._ / _.._ / ...._
._ _ / _.._ / ..._. / .._.. / ...._ / _ _.. / ..._. / ......