This kind of thing is VERY DANGEROUS to be implementing, because as soon as you have any sort of support in your software for presumed-region dependent policy, totalitarian states can and will pressure you to do things like automatically trusting their MITM CA is the user is in their jurisdiction.
Then anyone who wants to MITM you can just get you to connect to a WiFi AP that goes out through a VPN to said country, tricking your browser that that's where you are.