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

Subdivision depth #85

Open
vinceh121 opened this issue May 7, 2024 · 3 comments · May be fixed by #90
Open

Subdivision depth #85

vinceh121 opened this issue May 7, 2024 · 3 comments · May be fixed by #90

Comments

@vinceh121
Copy link

It seems that some states only have their top-most subdivisions indicated in the data/subdivisions/* files. E.g. France only has régions (FR-OCC...) but lacks départements (FR-31...)1, Great Britain has countries (GB-ENG...) but lacks counties (GB-ESS)2

Would there be a problem in adding those "deeper" subdivisions?

Footnotes

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

  2. https://en.wikipedia.org/wiki/ISO_3166-2:GB

@stefangabos
Copy link
Owner

yes, i have never paid too much attention to what is in the subdivisions nor am i familiar with other countries' subdivisions. i was hoping for peoples' contributions for the management of subdivisions.
but now that i see that wikipedia has most of the needed info i will write a script to fetch everything

@vinceh121
Copy link
Author

I think it would be easier to fetch all this data from OpenStreetMap using Overpass Turbo with this query:

[out:json][timeout:60];
nwr["ISO3166-2"]["type"="boundary"];
out tags;

Although I am unsure how complete it is, or if the licensing is compatible with the LGPL.

@stefangabos
Copy link
Owner

stefangabos commented May 14, 2024

this looks really nice and I can further optimise that query. also, yes, i can get that data programatically. not sure about the licensing though. this is the OpenStreetMap's license page and it says "If you alter or build upon our data, you may distribute the result only under the same licence". Overall, I think GNU GPL is not compatible with the ODbL license but what we can do though is strictly have the subdivisions data released under the ODbL license, alongside obviously crediting OpenStreetMap for the data source. i am not sure where that stands from a legal point of view

@vinceh121 vinceh121 linked a pull request Jul 9, 2024 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants