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