View schedules for the local Circumvesuviana train from Naples to Sorrento that stops at Pompeii (the station is located opposite the ruins) and Herculaneum (a 10-minute walk to the ruins). The trip from Naples to Pompeii or from Sorrento to Pompeii takes about 30 minutes.