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