The calculated distance (air line) between Jēkabpils and Jūrmala is approximately 85 miles respectively 138 kilometers.
By car or train, the actual journey to Jūrmala is certainly longer, as only the direct route (as the crow flies) between Jēkabpils and Jūrmala has been calculated here.