How We Make Our Maps
Last updated
Every quiz on Trivia Questions Digest is built from public data by code, then checked by automated tests before the site is published. This page explains where each piece comes from and the choices we made along the way.
Map sources
- US states: the US Census Bureau's cartographic boundary files, through the open-source us-atlas package. The map uses the Albers USA projection, which places Alaska and Hawaii as insets in the lower left. Their position and size there are not true to life.
- World countries: Natural Earth's 1:50 million country boundaries, which are in the public domain, through the world-atlas package. We simplify the outlines so maps load quickly; small islands and fine coastline detail are smoothed.
- Projections: the world map uses the Equal Earth projection, which keeps countries' relative sizes honest. Europe uses a conic projection, and the regional maps of Africa, Asia, the Americas and Oceania use Mercator for familiar shapes at that scale.
All maps are drawn when the site is built and sent as plain SVG, so they display without JavaScript and look sharp at any zoom level.
Which countries are included
The quizzes ask about the 193 member states of the United Nations plus its two observer states, Vatican City and Palestine: 195 in all. Other places, including dependent territories like Greenland and Puerto Rico and partially recognized states like Kosovo and Taiwan, are drawn on the maps in gray but never asked. That rule is simple, public and doesn't require us to take a side in any dispute.
Continents follow the countries-list dataset with two changes: Russia is grouped with Europe, where map quizzes usually place it, and Timor-Leste is grouped with Southeast Asia. Countries too small to click at their map's scale are shown with a dot.
Capitals: checked twice
Capitals come from the countries-list dataset (MIT license). An automated test compares every one with a second, independent dataset, world-countries, and stops the build if they disagree. Where the official capital differs from the dataset's entry, we use the official one and say so.
7 countries are left out of capital questions because a single answer would mislead: Bolivia, Eswatini, Israel, Nauru, Palestine, South Africa, Sri Lanka. The table below lists every note we show with an answer.
| Country | Capital used | Note |
|---|---|---|
| Australia | Canberra | Canberra, not Sydney, is the capital. |
| Benin | Porto-Novo | Porto-Novo is the official capital; Cotonou is the seat of government and largest city. |
| Bolivia | Not asked | Sucre is the constitutional capital; the government sits in La Paz. |
| Brazil | Brasília | Brasília replaced Rio de Janeiro as capital in 1960. |
| Burundi | Gitega | Gitega became the political capital in 2019; Bujumbura is the largest city. |
| Canada | Ottawa | Ottawa, not Toronto, is the capital. |
| Côte d'Ivoire | Yamoussoukro | Yamoussoukro is the official capital; Abidjan is the largest city and economic center. |
| Eswatini | Not asked | Mbabane is the administrative capital; Lobamba is the royal and legislative capital. |
| Israel | Not asked | The status of Jerusalem is disputed internationally, so Israel is not included in the capital quiz. |
| Kazakhstan | Astana | Astana was named Nur-Sultan from 2019 to 2022. |
| Malaysia | Kuala Lumpur | Kuala Lumpur is the capital; many federal government offices moved to Putrajaya. |
| Myanmar | Naypyidaw | Naypyidaw replaced Yangon as Myanmar's capital in the mid-2000s. |
| Nauru | Not asked | Nauru has no official capital; government offices are in Yaren District. |
| Netherlands | Amsterdam | Amsterdam is the constitutional capital; the government and parliament sit in The Hague. |
| Nigeria | Abuja | Abuja replaced Lagos as Nigeria's capital in 1991. |
| Palestine | Not asked | The status of Jerusalem is disputed internationally, so Palestine is not included in the capital quiz. |
| South Africa | Not asked | South Africa has three capitals: Pretoria (executive), Cape Town (legislative) and Bloemfontein (judicial). |
| Sri Lanka | Not asked | Sri Jayawardenepura Kotte is the official capital; Colombo is the largest city and commercial capital. |
| Switzerland | Bern | Bern is the federal city; Swiss law does not name a capital. |
| Tanzania | Dodoma | Dodoma is the official capital; Dar es Salaam is the largest city. |
| Turkey | Ankara | Ankara, not Istanbul, is the capital. |
US states and capitals
The 50 states, their capitals and their Census regions are written out by hand. A test checks that every state name matches a shape on the Census map exactly, that there are 50 states and 50 capitals, and that each Census region has the right number of states: 9 in the Northeast, 12 in the Midwest, 16 in the South and 13 in the West.
Flags and outlines
Flags come from the open-source flag-icons project (MIT license). Country outlines in the shape quiz are drawn from the same Natural Earth data as the maps, each scaled to fill the same box, so size is not a clue.
Scoring
On map quizzes, a place counts as correct only if you click it on the first try. After three wrong clicks the map highlights the answer and moves on, and the place goes on your "practice these" list. Multiple-choice quizzes draw their wrong options from the same continent or US region as the answer.
Corrections
Names and capitals change. If you spot something out of date, email hello@triviaquestionsdigest.com. Confirmed fixes are made in the data files, the tests run again, and the page's updated date changes.