Which I guess is what iCloud private relay solves. But only if you pay.

So basically like a VPN or Tor? That won't defend against local code that can read location data and send it to a remote server.