apache / superset

Apache Superset is a Data Visualization and Data Exploration Platform
https://superset.apache.org/
Apache License 2.0
62.33k stars 13.69k forks source link

Countries map - Add Turkey Regions in addition to Turkey Departments #26423

Closed iskenderulgen closed 7 months ago

iskenderulgen commented 9 months ago

Discussed in https://github.com/apache/superset/discussions/26422

Originally posted by **iskenderulgen** January 7, 2024 ### SCREENSHOT The desired map output according to the region information of Turkey is as follows. ![turkey_regions](https://github.com/apache/superset/assets/15057168/d2fa7984-65f6-482d-be3d-857e2f5cfa2c) ### Description - In addition to Turkey's departmens, there is also need for Turkey's Regional map. - The map representation at NUTS1 (region) level is expected to enable Superset users to visualize high-level analyses according to their needs. ### Design Input We could follow what has been done for Italy's and France's Regions (sample line in code base: (https://github.com/apache/superset/blob/master/superset-frontend/plugins/legacy-plugin-chart-country-map/src/countries.ts#L210) ### Proposition ISO 3166-2 code is presented for city level such as TR-34 (Istanbul). However, after some search, there seems to be less or no information about Turkey's ISO 3166-2 codes for regional information. Region information is obtained from Nomenclature of Territorial Units for Statistics (NUTS) which has been widely used for Turkey since 2002. Turkish Statistical Institute (TUIK) provides board level information using NUTS codes which is of great benefit to oraganizations and companies. In view of the lack of ISO 3166-2 code information for Turkey at the region level and the wide use of NUTS codes, we could associate 12 region polygons with NUTS representations for **ISO** and **NAME_1** keys of geojson. For future if or when we can find ISO 3166-2 on region level, we can create new PR to change the data structure. Ref= https://en.wikipedia.org/wiki/ISO_3166-2:TR Ref=https://en.wikipedia.org/wiki/NUTS_statistical_regions_of_Turkey
iskenderulgen commented 7 months ago

This issue is completed with pull request #27455