Wierd datacenter for cloudflare worker?

On normal Cloudflare sites when I go to normal Cloudflare sites on the path of cdn-cgi/trace my colo is shown as MAD(rid) which makes sense as I live in Spain, but when I setup a worker that just returns request.cf.colo it shows all of my requests as going through IAD. Im trying to implement a system that uses different APIs based on the datacenter so this is causing problems. I would use cf.country but where I live our IPs often get confused as being from another country. Anyone have any ideas?