The calculated distance (air line) between Olaine and Karosta is approximately 112 miles respectively 181 kilometers.
By car or train, the actual journey to Karosta is certainly longer, as only the direct route (as the crow flies) between Olaine and Karosta has been calculated here.