I have the feeling this could be quite tricky to do. I'm trying to do it on a Galaxy S3. On the menu of that particular phone you open the control panel, click location services and then check boxes to enable the various options. There is also a confirmation dialogue each time you enable location reporting.
I thought that if there was any program on the market that could do this, it could be Tasker but perhaps there are other alternatives?