% Copyright (c) 2018 - 2022, Martin Scheidt (ISC license)
% Permission to use, copy, modify, and/or distribute this file for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
\documentclass[tikz,border=2]{standalone}
\usepackage{tikz-trackschematic} % loading the library
\begin{document}
\begin{tikzpicture}[font=\sffamily]
{ % station names
\tikzset{every node/.style={foreground!50!background}};
\node[right,align=left] at ( 2,1.3) {to and from\\ Arnau};
\node at (21,3.3) {{\LARGE Bf Berg}};
\node[left,align=right] at (38,1.3) {to and from\\ Chamstadt};
}
% coordinates
\coordinate (A) at ( 1.5, 0);
\coordinate (B) at (38.5, 0);
\coordinate (E1) at ( 9 , 1);
\coordinate (E2) at (11 ,-1);
\coordinate (E3) at (25 , 2);
\coordinate (H1) at (15 , 2);
\coordinate (H2) at (26 , 1);
\coordinate (Y1) at (14 , 0);
\coordinate (Y2) at (15 , 0);
\coordinate (Y3) at (14 , 1);
\coordinate (Y4) at (16 , 1);
\coordinate (Y5) at (27 , 0);
\coordinate (Y6) at (12.8,-1);
\coordinate (S1) at ( 7 , 0);
\coordinate (S2) at (10 , 0);
\coordinate (S3) at (18 , 0);
\coordinate (S4) at (18 , 1);
\coordinate (S5) at (24 , 0);
\coordinate (S6) at (24 , 1);
\coordinate (S7) at (30 , 0);
\coordinate (S8) at (33 , 0);
\coordinate (T1) at ( 6 , 0);
\coordinate (T2) at (10.2, 1);
\coordinate (T3) at (23 , 2);
\coordinate (T4) at (34 , 0);
\coordinate (P1) at (21 , 0);
\coordinate (P2) at (21 , 1);