Open vinceh121 opened 2 months ago
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
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.
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
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)^2Would there be a problem in adding those "deeper" subdivisions?