The calculated distance (air line) between Gornji Petrovci and Koper is approximately 148 miles respectively 238 kilometers.
By car or train, the actual journey to Koper is certainly longer, as only the direct route (as the crow flies) between Gornji Petrovci and Koper has been calculated here.
Air line (approximately)
238 kilometers
128 nautical miles