The calculated distance (air line) between Sankt Johann in Tirol and Hernals is approximately 185 miles respectively 297 kilometers.
By car or train, the actual journey to Hernals is certainly longer, as only the direct route (as the crow flies) between Sankt Johann in Tirol and Hernals has been calculated here.
Air line (approximately)
297 kilometers
160 nautical miles