Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding iso code for admin2 #26

Open
Blennouill opened this issue Aug 14, 2017 · 3 comments
Open

Adding iso code for admin2 #26

Blennouill opened this issue Aug 14, 2017 · 3 comments

Comments

@Blennouill
Copy link

Blennouill commented Aug 14, 2017

Hello,

I'm thinking to add admin2 level. For example, belgium section could looks like this :

            {
                "name":"Bruxelles-Capitale",
                "iso3166-2":"BRU",
                "admin2": null
            },
            {
                "name":"Région Flamande",
                "iso3166-2":"VLG",
                "admin2": [
                    {
                        "name":"Antwerpen",
                        "iso3166-2":"BE-VAN"
                    },
                    {
                        "name":"Limburg",
                        "iso3166-2":"BE-VLI"
                    },
                    {
                        "name":"Oost-Vlaanderen",
                        "iso3166-2":"BE-VOV"
                    },
                    {
                        "name":"Vlaams-Brabant",
                        "iso3166-2":"BE-VBR"
                    },
                    {
                        "name":"West-Vlaanderen",
                        "iso3166-2":"BE-VWV"
                    }
                ]
            },
            {
                "name":"Région Wallonië",
                "iso3166-2":"WAL",
                "admin2": [
                    {
                        "name":"Brabant wallon",
                        "iso3166-2":"BE-WBR"
                    },
                    {
                        "name":"Hainaut",
                        "iso3166-2":"BE-WHT"
                    },
                    {
                        "name":"Liége",
                        "iso3166-2":"BE-WLG"
                    },
                    {
                        "name":"Luxembourg",
                        "iso3166-2":"BE-WLX"
                    },
                    {
                        "name":"Namur",
                        "iso3166-2":"BE-WNA"
                    }
                    
                ]
            }

What is your opinion ? Are you interest to add this configuration ?

@Blennouill
Copy link
Author

Blennouill commented Aug 29, 2017

@benkeen Any opinion on it ? If you are not interested, feel free to notify me. I will create a new repo to implement those features

@benkeen
Copy link
Member

benkeen commented Aug 31, 2017

Hi @Coemgen4 - sorry for not getting back to you! To be perfectly honest, I'm not familiar with admin2. Do you have a source for that info, or even a full discussion of it?

@Blennouill
Copy link
Author

@benkeen Sorry, the term admin2 is to use a generic word to describe administrative level in countries.

  • admin0 -> Country
  • admin1 -> First level
  • admin3 -> Second level
  • admin4 -> Third level
  • ...

For example, in France :

  • France
  • Region
  • Departement
  • ...

Sources:
https://en.wikipedia.org/wiki/List_of_administrative_divisions_by_country
https://en.wikipedia.org/wiki/ISO_3166-2:FR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants