A publicly available dataset containing the countries and administrative divisions as defined in ISO 3166-2.
After much research into how to best structure the geospacial data for happiest I made the decision to use ISO 3166-2 as the foundation. This repo contains JSON data representing ISO 3166-2 with the countries and divisions reverse geocoded; designed primarily for import into MongoDB it will be useful to anyone with a need for geospacial data.
46
stars
21
forks
source link
wish: Key by province name as well as province code #2
I'd like to look up province codes based on the province name.
To avoid making the data structure extra-huge, you might be able to use self-references to avoid making a a second copy of most of the structures. I have not tried this approach, and am not totally sure it's much of win in space savings, but there's a link on self-references in JSON if it's of interest:
I'd like to look up province codes based on the province name.
To avoid making the data structure extra-huge, you might be able to use self-references to avoid making a a second copy of most of the structures. I have not tried this approach, and am not totally sure it's much of win in space savings, but there's a link on self-references in JSON if it's of interest:
http://blog.lo-fi.net/2008/01/json-recursion-making-self-reference.html