It is situated at the southern portal of the Bohinj Tunnel, which is the longest railway tunnel in Slovenia ( 6327 meters ) and passes underneath Mount Kobla and the Julian Alps drainage divide between the Danube Valley and the Adriatic Sea.