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