Text this: Constraining the onset height of coronal mass ejection driven shocks using near-Sun observations in visible and radio wavelengths