Loanhead is a former mining setlement in Midlothian. Nearby is the Bilston Glen viaduct, restored in 1999.