Skip to content

Administrative units & cities messed up in Poland, Bhutan, the United Kingdom #1019

@ewuski

Description

@ewuski

We've been trying to use your API to make a list of states/ provinces/ regions in various countries.

We have tried so far about 10 countries and we found issues in the following ones:

The United Kingdom
Bhutan
Poland

In the United Kingdom, Bhutan and Poland, various levels of the administrative regions are messed up. As the problem appears in many results, I suppose it is a broader issue than just a few countries. More about it below.

For example:

POLAND

In Poland, the divisions are roughly as follows: Voivodeships > Powiats > Gminas > Cities
There are some intricacies to that, but by no means is a powiat a city. More here: https://en.wikipedia.org/wiki/Administrative_divisions_of_Poland

The request

https://api.countrystatecity.in/v1/countries/PL/states/[siso]/cities

returns both cities & Powiats together. This is wrong because a city is a smaller unit that is a part of a powiat, not an equal unit.
Therefore, the API should return only cities within a voivodeship.

UNITED KINGDOM

The United Kingdom is divided into countries (England, Northern Ireland, Scotland, Wales) and they are divided into smaller units - counties - see the information under "Local government" in Wikipedia: https://en.wikipedia.org/wiki/Counties_of_England that lists all (metropolitan and non-metropolitan) counties.

Your API

https://api.countrystatecity.in/v1/countries/GB/states

returns 247 units of which some are countries (eg. England), some counties (that are part of countries), some cities (eg. Darlington, Doncaster, Glasgow etc. that are part of counties) and some even local councils (which are yet another type of unit).
Also, the result is missing many counties, such as West Yorkshire, South Yorkshire, Durham.

There is no logic in it whatsoever.

You either need to return countries in the above API or return counties. By no means, various administrative levels should be mixed, nor should cities be put in the states result.

BHUTAN

https://api.countrystatecity.in/v1/countries/BT/states

returns 19 districts while there are 20 districts in Bhutan (Trashiyangtse District is missing).

The following:

https://api.countrystatecity.in/v1/countries/BT/states/22/cities

returns Wangdue Phodrang city as part of the Dagana District, while it is part of Wangdue Phodrang District (by the same name as the city). There are other mistakes like this in the Bhutan cities result.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingmissing-recordsMissing some records

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions