Try 30 days of free premium.

Country ISO Code

dogzipp wrote 9 years ago: 1

To Jan: On another thread here, you comment "We are currently focussing our resources on US, CA and UK shows."

Strangely, the schedule APi endpoint doesn't support UK as valid ISO country code, instead opting to use "GB".

Since 99.9% percent of API users are accustomed to using "UK", even yourself because of your comments, doesn't it make sense to use that instead (or at least have the endpoint work with both ISO codes and produce the same results).

Thanks


david wrote 9 years ago: 1

That's because UK isn't actually a valid ISO 3166 country code. See https://en.wikipedia.org/wiki/ISO_3166-1: For this reason, common components of country names like "Republic", "Kingdom", "United", "Federal" or "Democratic" are normally not used for deriving the code elements. As a consequence, for example, the United Kingdom is officially assigned the alpha-2 code GB rather than UK, based on its official name "United Kingdom of Great Britain and Northern Ireland"

I think it's confusing as well, I personally always use UK rather than GB. But that's the standard, so that's what we'll have to stick to.

dogzipp wrote 9 years ago: 1

Maybe the API endpoint could validate both, and use UK as an alias for GB.

Try 30 days of free premium.