That's a pretty crappy way to detect it seems, it thinks I'm in some city almost a thousand miles away, no VPN, purely direct connection,...
Your IP address doesn't automatically correspond to your city, even without a VPN.
Then add your city as an argument to the curl. It works well enough regardless and doesn't use hundreds of megabytes of RAM which is what the initial complaint was.