Giter Club home page Giter Club logo

Comments (7)

theKashey avatar theKashey commented on July 17, 2024 1

AW does not exist by a mistake - it exists in the original data, but lost in the export http://geolocated.org/AW/

Some locations, as SX, were moved under their "top level" origins - http://geolocated.org/NL/3elo3okh
Probably that was a mistake.

I will try to tidy it up, but it's almost a manual work.

from 3166.

theKashey avatar theKashey commented on July 17, 2024

That's not hard to check, but not so easy to find a fix. It was sure it does contain everything.

from 3166.

elvis-certn avatar elvis-certn commented on July 17, 2024

It seems "CW" Curaçao is still missing. Is there any plan to update it?

from 3166.

Portur avatar Portur commented on July 17, 2024

Hi there, I matched against Natural Earth data and got the following missing items.

const ISOCountryListUN = require('iso3166-2-db/countryList/dispute/UN/en')
const ISOCountryList = require('iso3166-2-db/countryList/en')
No result in ISOCountryList for (BV) Bouvet Island
No result in ISOCountryListUN for (BV) Bouvet Island
No result in ISOCountryList for (EH) Western Sahara
No result in ISOCountryListUN for (EH) Western Sahara
No result in ISOCountryList for (CC) Cocos (Keeling) Islands
No result in ISOCountryListUN for (CC) Cocos (Keeling) Islands
No result in ISOCountryList for (CW) Curaçao
No result in ISOCountryListUN for (CW) Curaçao
No result in ISOCountryList for (NC) New Caledonia
No result in ISOCountryListUN for (NC) New Caledonia
No result in ISOCountryList for (MF) Saint Martin (French part)
No result in ISOCountryListUN for (MF) Saint Martin (French part)
No result in ISOCountryList for (PF) French Polynesia
No result in ISOCountryListUN for (PF) French Polynesia
No result in ISOCountryList for (HM) Heard Island and McDonald Islands
No result in ISOCountryListUN for (HM) Heard Island and McDonald Islands
No result in ISOCountryList for (AX) Åland Islands
No result in ISOCountryListUN for (AX) Åland Islands
No result in ISOCountryList for (AW) Aruba
No result in ISOCountryListUN for (AW) Aruba
No result in ISOCountryList for (SJ) Svalbard and Jan Mayen
No result in ISOCountryListUN for (SJ) Svalbard and Jan Mayen
No result in ISOCountryList for (CX) Christmas Island
No result in ISOCountryListUN for (CX) Christmas Island
No result in ISOCountryList for (SX) Sint Maarten (Dutch part)
No result in ISOCountryListUN for (SX) Sint Maarten (Dutch part)
No result in ISOCountryList for (NF) Norfolk Island
No result in ISOCountryListUN for (NF) Norfolk Island
No result in ISOCountryList for (XK) Republic of Kosovo
No result in ISOCountryListUN for (XK) Republic of Kosovo
No result in ISOCountryList for (BL) Saint Barthélemy
No result in ISOCountryListUN for (BL) Saint Barthélemy

I'd be happy to provide you the spatial objects if that helps?

from 3166.

theKashey avatar theKashey commented on July 17, 2024

No result in ISOCountryListUN for (EH) Western Sahara

It's interesting that EH exists in dispute configuration as 195838 OSM region, deleted 7 years ago. Now EH is represented by https://www.openstreetmap.org/node/2000314677.

Both records are not present in iso3166 database. That is definitely a mistake.

The code XK is being used by the European Commission[28] the IMF, and SWIFT,[29] the CLDR, and other organizations as a temporary country code for Kosovo.[30]

This is why disputes are here - not all codes are expected to present, or present on the top level. For example NF is marked as "not independent", however it's region (https://www.openstreetmap.org/relation/2574988) is also absent in the database 😓

I'd be happy to provide you the spatial objects if that helps?

Ideally, an information record like the ones you can find at https://github.com/esosedi/3166/blob/master/data/iso3166-2.json - that is the main data file, everything else is derived from it.
Unfortuantely it does not support any "auto-update".

from 3166.

amhunt avatar amhunt commented on July 17, 2024

@theKashey we have some users asking for the presence of Kosovo (XK). We can hack something to add the code on our end in the meantime, but are there any plans to add Kosovo to this repo? Kosovo appears to now be recognized by most western countries.

I see that XK is already referenced in the Russian exclusion file — I'm not sure if we'd need to add it to other country-specific exclusion configs.

from 3166.

theKashey avatar theKashey commented on July 17, 2024

The first step to resolve the current situation is to update the sources as there is no XK present in the 3166 file, as well as osm and Geonames lookup.

We can hack something to add the code on our end in the meantime

The only way is to add a new record into datasource - https://github.com/esosedi/3166/blob/4967dc5a9cf50c1015592be0ba3050288d60a1a5/data/iso3166-2.json

May be it's a good moment to split one huge source into multiple small configs it will be easier to handle.

from 3166.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.