The calculated distance (air line) between Ramla and Ramat HaSharon is approximately 15 miles respectively 24 kilometers.
By car or train, the actual journey to Ramat HaSharon is certainly longer, as only the direct route (as the crow flies) between Ramla and Ramat HaSharon has been calculated here.
Air line (approximately)
24 kilometers
13 nautical miles