Thanks both for your replies however I need my phone to connect to the car WiFi (as it is required for Android Auto to work).
My requirement is to have the phone connect to the car WiFi but when it is connected to the car WiFi, I need to force the phone to use cellular data (instead of the car...