How to make certain apps turn on GPS automatically?
Take a look at Tasker.  It pretty much allows you to automate and set rules for everything on your phone based on times of the day, what apps you are using, your location...  You can set a profile to automatically turn your GPS on or off based on almost any condition you can imagine.