Switch off gps

Is there a way to completely switch off the GPS, for example when using indoor cycle trainer, I can use the cycle features but the GPS in these circumstances is useless and just an excess drain on the battery