There are lots of apps that log GPS positions. Receiving the GPS signal from the satellites does not depend on cell service. If you want to plot the GPS positions on a map, cell service will provide Google Maps to do that, but you can also download the file of GPS positions to a computer, and plot them there. Old phones will work fine. Try it. Take one, or take your current phone and turn off cell service, go on wifi, download GPS Logger (as an example), and run it.