Besides using your IP address to determine your location, Pokemon also relies on your device’s coordinates. So when you use a GPS spoofing app with a VPN, the game won’t know that you have changed your location.