Of course in the settings of the device, under
Location > Mode > Device sensors only (GPS only)

Try to think sometimes, or use google search