How to set iphone app to use location only when open?

I recently downloaded the google app or google glasses app (whichever it is called) and I noticed that my GPS was on even when the app wasn't running. Is there a way to set he app so that the location services only come on when I open the app and then turn off when I hit the home button?

It shouldn't be doing that. Make sure you close it completely from the multitask. If not then you probly can't turn it off