Thanks but not quite what I was looking for - AFAIK this only gives me the general region, not the exact country or city (although I know the latter is usually impossible to get right with IP address alone). Having the country the user connected from would be very helpful.
Vercel uses (or used) maxmind, but I hear https://ipinfo.io/ is more accurate and are amenable to negotiation prices for enterprise use cases. Say providing geoip headers to all their customers. Loading up a free version of maxmind for ourselves and shipping 300mb is rough (never mind reading it on every request). If I was operating a global routing layer it would be a lot easier as my machines would be a lot bigger.
Source: I used to run a global https routing layer.