The calculated distance (air line) between Riachos and Portimão is approximately 159 miles respectively 256 kilometers.
By car or train, the actual journey to Portimão is certainly longer, as only the direct route (as the crow flies) between Riachos and Portimão has been calculated here.