History of rail transport
James Watt, a Scottish inventor and mechanical engineer, greatly improved the steam engine of Thomas Newcomen, hitherto used to pump water out of mines. Watt developed a reciprocating engine in 1769, capable of powering a wheel. Although the Watt engine powered cotton mills and a variety of machinery, it was a large stationary engine. It could not be otherwise: the state of boiler technology necessitated the use of low pressure steam acting upon a vacuum in the cylinder; this required a separate condenser and an air pump. Nevertheless, as the construction of boilers improved, Watt investigated the use of high-pressure steam acting directly upon a piston. This raised the possibility of a smaller engine, that might be used to power a vehicle and he patented a design for a steam locomotive in 1784. His employee William Murdoch produced a working model of a self-propelled steam carriage in that year.
The first full-scale working railway steam locomotive was built in the United Kingdom in 1804 by Richard Trevithick, a British engineer born in Cornwall. This used high-pressure steam to drive the engine by one power stroke. The transmission system employed a large flywheel to even out the action of the piston rod. On 21 February 1804, the world's first steam-powered railway journey took place when Trevithick's unnamed steam locomotive hauled a train along the tramway of the Penydarren ironworks, near Merthyr Tydfil in South Wales. Trevithick later demonstrated a locomotive operating upon a piece of circular rail track in Bloomsbury, London, the "Catch Me Who Can", but never got beyond the experimental stage with railway locomotives, not least because his engines were too heavy for the cast-iron plateway track then in use.
The first commercially successful steam locomotive was Matthew Murray's rack locomotive "Salamanca" built for the Middleton Railway in Leeds in 1812. This twin-cylinder locomotive was not heavy enough to break the edge-rails track and solved the problem of adhesion by a cog-wheel using teeth cast on the side of one of the rails. Thus it was also the first rack railway.
Haarlem
In 1804, Richard Trevithick designed the first locomotive. The government of the Netherlands was relatively slow to catch up, even though the King feared competition from newly established Belgium if they would construct a railway between Antwerp and other cities. The Dutch parliament balked at the high level of investment needed, but a group of private investors started the Hollandsche IJzeren Spoorweg-Maatschappij on 1 June 1836. It took three years to build the first track on the railway, between Haarlem and Amsterdam along the old tow canal called the Haarlemmertrekvaart. The ground there was wet and muddy. On 20 September 1839, the first train service in the Netherlands started. The train had a speed of about . The train service gave the Beijnes company, and indirectly the whole economy of Haarlem, a strong boost, and the effects of this can be seen in the Haarlem railway station, now a rijksmonument. Instead of more than two hours, Amsterdam was now only 30 minutes away. The old passenger service by trekschuit along the Haarlemmertrekvaart was quickly taken out of service in favour of the train service, which was quicker and more reliable. In 1878, a Beijnes-made horse tram started servicing passengers from the railway station to the Haarlemmerhout woodland park, and in 1894, the "Eerste Nederlandsche Electrische Tram Maatschappij" (ENET) was founded with cars built by Beijnes and became the first Dutch electric tram, which ran in Haarlem from 1899 onwards.