The calculated distance (air line) between Ramsbottom and Edinburgh is approximately 163 miles respectively 262 kilometers.
By car or train, the actual journey to Edinburgh is certainly longer, as only the direct route (as the crow flies) between Ramsbottom and Edinburgh has been calculated here.
Air line (approximately)
262 kilometers
142 nautical miles