The calculated distance (air line) between Ribeirão Preto and Cotia is approximately 177 miles respectively 285 kilometers.
By car or train, the actual journey to Cotia is certainly longer, as only the direct route (as the crow flies) between Ribeirão Preto and Cotia has been calculated here.
Air line (approximately)
285 kilometers
154 nautical miles