 The London , Chatham and Dover Railway opened a second line to Ramsgate on 5 October 1863 . This line ran from London via Herne Bay , Margate and Broadstairs before descending to sea level at Ramsgate through a 1 @,@ 124 @-@ yard ( 1 @,@ 028 m ) tunnel to Ramsgate Harbour station , on the seafront immediately adjacent to the harbour . 
