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