Getting a country for a given set of GPS coordinates is quite heavy on the CPU because it's a point-in-polygon-check for quite some big polygons.
(Would make it possible to make the country-blacklist/whitelist more precise as well)
https://stackoverflow.com/questions/3659809/where-am-i-get-country#19415296
Variant listed there:
Where a point is, not where you yourself are. Don't worry, I do know exactly what to do.
Success! (AddMaxSpeed is disabled in US, but not in Mexico)

Finally got this off my todo list.
In the last 2 weeks, I worked on this: https://github.com/westnordost/countryboundaries
Awesome! 馃帀
Most helpful comment
Finally got this off my todo list.
In the last 2 weeks, I worked on this: https://github.com/westnordost/countryboundaries