I've toyed with the world bank API for a while, it's great, it's not always super up to date but it's always available for free, that's already that https://documents.worldbank.org/en/publication/documents-reports/api there's a lot of data per country, but outside the basics such as GDP and such I remember I noticed that they count "open defecators" they count them, they keep a count on the number of street shiters by country, it's amazing https://data.worldbank.org/indicator/SH.STA.ODFC.ZS?view=map
The API request gives you this http://api.worldbank.org/v2/country/all/indicator/SH.STA.ODFC.ZS?format=json as json, it's awesome https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch you combine that with a SVG map, and you can make interactive maps with country stats from the world bank typically, it's great, since an SVG is tagged... Every area has an ID, just like html tags
"view-source:https://simplemaps.com/static/demos/resources/svg-library/svgs/world.svg"
https://simplemaps.com/static/demos/resources/svg-library/svgs/world.svg
https://simplemaps.com/resources/svg-world
So you see how this can easily be done on a trigger such as mouse over/click
You can combine many APIs like that and make your own glownigger world factbook
Could prove useful. Thanks for the info, bookmarked in my tool box.
(post is archived)