News for hackers. Stuff that matters.
Re:I made a simple geolocation service by stereo on Friday July 24, 2020 @05:21AM (#23937431)
That country list doesn't have Kosovo (2008) or South Sudan (2011).
Re:I made a simple geolocation service by seszett on Friday July 24, 2020 @07:26AM (#23938160)
A somewhat related problem is that overseas regions (at least for France) are handled as different countries. It makes sense for a CDN, but for most other purposes when I use Internet when I'm on Réunion island my country is "FR", not "RE", since RE is not actually a country. It's also quite inconsistent, I've tried with several IPs from Réunion and some of them are FR while the others are RE.

It doesn't seem to have the same problem with Hawaii for some reason, they're all just US from what I can see.

Re:I made a simple geolocation service by dbuxton on Friday July 24, 2020 @05:40AM (#23937521)
Also the republic of north Macedonia is still in there by old name ;)
Re:I made a simple geolocation service by jacobush on Friday July 24, 2020 @06:03AM (#23937650)
Kosovo is not universally recognised though, to be fair. But yes, I'd include it. Even if you are against in principle, it's de facto a state and treated as such even by many countries not recognising it in name.
Re:I made a simple geolocation service by hansitomani on Friday July 24, 2020 @06:14AM (#23937714)
But that would mean that your API should return a country specific result to be accurate.
Re:I made a simple geolocation service by AdrianoKF on Friday July 24, 2020 @06:57AM (#23937970)
Which is precisely what for example Mapbox does - they allow consumers to specify a worldview, which adjusts borders and other geographic features based on the specified culture: https://docs.mapbox.com/help/glossary/worldview/
Re:I made a simple geolocation service by jaakl on Sunday July 26, 2020 @06:40AM (#23956040)
They dont have Serbian one to resolve this issue. Or even more relevant ones like Russia (remember Crimea).