The calculated distance (air line) between Ourém and Guimarães is approximately 126 miles respectively 202 kilometers.
By car or train, the actual journey to Guimarães is certainly longer, as only the direct route (as the crow flies) between Ourém and Guimarães has been calculated here.