Inconsistent Country Codes (Autocomplete API)

  • 1
  • Problem
  • Updated 4 years ago
It took me a while to grumbling accept that you guys invented your own country code system. I found the mapping in your documentation, I tried to reverse engineer where to expect iso codes. It somewhat worked.

And now this:

http://autocomplete.wunderground.com/...

-->

{ "RESULTS": [
{
"name": "Gelsenkirchen-Alt, Germany",
"type": "city",
"c": "DE",
"zmw": "00000.16.10413",
"tz": "Europe/Berlin",
"tzs": "CEST",
"l": "/q/zmw:00000.16.10413",
"ll": "51.516666 7.116667",
"lat": "51.516666",
"lon": "7.116667"
},
{
"name": "Gelsenkirchen, Germany",
"type": "city",
"c": "GM",
"zmw": "00000.17.10413",
"tz": "DE1",
"l": "/q/locid:GMXX0044",
"ll": "51.509998 7.090000",
"lat": "51.509998",
"lon": "7.090000"
}
]
}

The country code is "DE" in the first one, which is perfectly reasonable iso3166. Not mentioned in your docs that it differs from your proprietary "DL" country code, but that I am happy to accept. The second one is "GM"? Really? WTF?

And what timezone is "DE1"? Where is that one specified? What is wrong with the Olson database you're using in the first result?

Can't you guys just pick a standard and stick to it, preferrably international, well established ones? If you import databases from other sources it is your job to map then to the standard you picked. It really shouldn't be that hard...

Thanks,
Simon
Photo of Simon

Simon

  • 10 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of Simon

Simon

  • 10 Posts
  • 0 Reply Likes
The same happens within Austria - AT vs AU:

http://autocomplete.wunderground.com/...

then Denmark (DK, DA):

http://autocomplete.wunderground.com/...

Sweden (SE, SW):

http://autocomplete.wunderground.com/...