country-list-js icon indicating copy to clipboard operation
country-list-js copied to clipboard

Political subdivisions

Open ekkis opened this issue 5 years ago • 2 comments

I've always wanted to have a source for political subdivisions. it's a complex matter but we should attempt it. part of the proposition would address terminology i.e. is is a province, a department, at prefecture?

and maybe go down a level or 2. Australia, for example, has territories, underneath states (and those are broken up too). Russia has oblasts

we should give it a try

ekkis avatar Apr 01 '19 02:04 ekkis

Isn't that a memory overload for someone who only wants a list of countries for his HTML select element?

i-rocky avatar Apr 01 '19 08:04 i-rocky

it would be but we can require the user to make a special call for the additional information. we don't return it by default. in fact, we could specify a depth parameter so depth=1 returns territories, depth=2 returns states, depth=3 returns provinces, depth=4 returns metropolitan areas, etc.

ekkis avatar Apr 01 '19 18:04 ekkis