Interactive map visualizing the geographic centers (centroids) of all countries.
An educational and academic study on global geography.
Live site: middleofcountries.github.io
Middle of Countries calculates and visualizes the geographic centroid of every country. The centroid is computed as the area-weighted geometric center of the country's polygon boundary, using Natural Earth and GADM 4.1 boundary data on the WGS84 coordinate system.
Used by educators, researchers, journalists, developers, and geography enthusiasts worldwide.
13 languages: English · Türkçe · Español · Français · Deutsch · Русский · 中文 · العربية · Português · Italiano · 日本語 · 한국어 · हिन्दी
The complete dataset is available as a downloadable JSON file.
Direct link: data.json
The JSON file contains the geographic center (centroid) of every country, computed as the area-weighted geometric centroid of the country's polygon boundary.
Each country record includes:
| Field | Description |
|---|---|
name |
Country name in English |
slug |
URL identifier used in detail pages |
latitude |
Centroid latitude — WGS84, 6 decimal degrees |
longitude |
Centroid longitude — WGS84, 6 decimal degrees |
detail_page |
Link to the country's interactive map page |
maps.google |
Google Maps link at the centroid |
maps.openstreetmap |
OpenStreetMap link at the centroid |
maps.apple |
Apple Maps link at the centroid |
The file header (_metadata) contains full academic documentation: methodology, data sources, license, project history, and schema description.
{
"name": "Turkey",
"slug": "turkiye",
"latitude": 39.059753,
"longitude": 34.902512,
"detail_page": "https://middleofcountries.github.io/countries/right-in-the-middle-of-turkiye.html",
"maps": {
"google": "https://www.google.com/maps?q=39.059753,34.902512",
"openstreetmap": "https://www.openstreetmap.org/?mlat=39.059753&mlon=34.902512&zoom=5",
"apple": "https://maps.apple.com/?ll=39.059753,34.902512&z=5"
}
}// Fetch the dataset
const res = await fetch('https://raw.githubusercontent.com/middleofcountries/middleofcountries.github.io/main/data.json');
const data = await res.json();
const countries = data.countries;
// Find a country
const turkey = countries.find(c => c.name === 'Turkey');
console.log(`Center of Turkey: ${turkey.latitude}, ${turkey.longitude}`);
// Open in Google Maps
window.open(turkey.maps.google);import requests
data = requests.get(
'https://raw.githubusercontent.com/middleofcountries/'
'middleofcountries.github.io/main/data.json'
).json()
for country in data['countries']:
print(f"{country['name']}: {country['latitude']}, {country['longitude']}")Attribution required when using this data:
Geographic centroid data © Middle of Countries (middleofcountries.github.io)
Licensed under Open Academic License (OAL-NC 1.0)
Source: Natural Earth / GADM 4.1 / WGS84
Coordinates are computed centroids sourced from this project's own dataset. Click any link to open the location in your preferred map application.
[Detail] = Country detail page · [G] = Google Maps · [OSM] = OpenStreetMap · [A] = Apple Maps
| # | Country | Latitude | Longitude | Maps |
|---|---|---|---|---|
| 1 | Afghanistan | 33.836267 |
66.008448 |
G · OSM · A |
| 2 | Albania | 41.142482 |
20.053819 |
G · OSM · A |
| 3 | Algeria | 28.14889 |
2.653091 |
G · OSM · A |
| 4 | Andorra | 42.541327 |
1.560756 |
G · OSM · A |
| 5 | Angola | -12.292316 |
17.536985 |
G · OSM · A |
| 6 | Antigua and Barbuda | 17.284096 |
-61.792184 |
G · OSM · A |
| 7 | Argentina | -35.378679 |
-65.173077 |
G · OSM · A |
| 8 | Armenia | 40.289009 |
44.932425 |
G · OSM · A |
| 9 | Australia | -25.732311 |
134.491119 |
G · OSM · A |
| 10 | Austria | 47.585657 |
14.130673 |
G · OSM · A |
| 11 | Azerbaijan | 40.28926 |
47.541278 |
G · OSM · A |
| 12 | Bahamas | 24.223986 |
-76.551494 |
G · OSM · A |
| 13 | Bahrain | 26.035519 |
50.563496 |
G · OSM · A |
| 14 | Bangladesh | 23.845678 |
90.242 |
G · OSM · A |
| 15 | Barbados | 13.181054 |
-59.561218 |
G · OSM · A |
| 16 | Belarus | 53.53188 |
28.033567 |
G · OSM · A |
| 17 | Belgium | 50.637462 |
4.639961 |
G · OSM · A |
| 18 | Belize | 17.208319 |
-88.693889 |
G · OSM · A |
| 19 | Benin | 9.641217 |
2.328741 |
G · OSM · A |
| 20 | Bhutan | 27.421509 |
90.406688 |
G · OSM · A |
| 21 | Bolivia | -16.706877 |
-64.684754 |
G · OSM · A |
| 22 | Bosnia and Herzegovina | 44.171734 |
17.773408 |
G · OSM · A |
| 23 | Botswana | -22.185772 |
23.798987 |
G · OSM · A |
| 24 | Brazil | -10.780859 |
-53.092482 |
G · OSM · A |
| 25 | Brunei | 4.5165 |
114.727246 |
G · OSM · A |
| 26 | Bulgaria | 42.768523 |
25.217513 |
G · OSM · A |
| 27 | Burkina Faso | 12.269554 |
-1.755528 |
G · OSM · A |
| 28 | Burundi | -3.357425 |
29.875083 |
G · OSM · A |
| 29 | Cabo Verde | 15.945152 |
-23.975655 |
G · OSM · A |
| 30 | Cambodia | 12.715562 |
104.902804 |
G · OSM · A |
| 31 | Cameroon | 5.693058 |
12.736984 |
G · OSM · A |
| 32 | Canada | 61.376351 |
-98.293713 |
G · OSM · A |
| 33 | Central African Republic | 6.566322 |
20.464809 |
G · OSM · A |
| 34 | Chad | 15.333078 |
18.646251 |
G · OSM · A |
| 35 | Chile | -37.743607 |
-71.364375 |
G · OSM · A |
| 36 | China | 36.559273 |
103.832592 |
G · OSM · A |
| 37 | Colombia | 3.909413 |
-73.083842 |
G · OSM · A |
| 38 | Comoros | -11.884217 |
43.680164 |
G · OSM · A |
| 39 | Congo (Congo-Brazzaville) | -0.83888 |
15.218336 |
G · OSM · A |
| 40 | Costa Rica | 9.973437 |
-84.193528 |
G · OSM · A |
| 41 | Croatia | 45.067505 |
16.395725 |
G · OSM · A |
| 42 | Cuba | 21.625298 |
-79.035212 |
G · OSM · A |
| 43 | Cyprus | 34.915217 |
32.989992 |
G · OSM · A |
| 44 | Czechia | 49.732448 |
15.314103 |
G · OSM · A |
| 45 | Democratic Republic of the Congo | -2.8798 |
23.645114 |
G · OSM · A |
| 46 | Denmark | 55.965377 |
10.05139 |
G · OSM · A |
| 47 | Djibouti | 11.750156 |
42.566454 |
G · OSM · A |
| 48 | Dominica | 15.436441 |
-61.356918 |
G · OSM · A |
| 49 | Dominican Republic | 18.896366 |
-70.496587 |
G · OSM · A |
| 50 | Ecuador | -1.426241 |
-78.772282 |
G · OSM · A |
| 51 | Egypt | 26.49292 |
29.861209 |
G · OSM · A |
| 52 | El Salvador | 13.73585 |
-88.871033 |
G · OSM · A |
| 53 | Equatorial Guinea | 1.706961 |
10.332886 |
G · OSM · A |
| 54 | Eritrea | 15.357514 |
38.852944 |
G · OSM · A |
| 55 | Estonia | 58.671014 |
25.535793 |
G · OSM · A |
| 56 | Eswatini | -26.561914 |
31.480024 |
G · OSM · A |
| 57 | Ethiopia | 8.622952 |
39.600551 |
G · OSM · A |
| 58 | Fiji | -17.447562 |
163.407882 |
G · OSM · A |
| 59 | Finland | 64.495359 |
26.270795 |
G · OSM · A |
| 60 | France | 46.2276 |
2.2137 |
G · OSM · A |
| 61 | Gabon | -0.591656 |
11.789569 |
G · OSM · A |
| 62 | Gambia | 13.449729 |
-15.397582 |
G · OSM · A |
| 63 | Georgia | 42.168801 |
43.507526 |
G · OSM · A |
| 64 | Germany | 51.106364 |
10.381494 |
G · OSM · A |
| 65 | Ghana | 7.953955 |
-1.216524 |
G · OSM · A |
| 66 | Greece | 39.051181 |
22.974819 |
G · OSM · A |
| 67 | Greenland | 74.735991 |
-41.345739 |
G · OSM · A |
| 68 | Grenada | 12.153373 |
-61.656682 |
G · OSM · A |
| 69 | Guatemala | 15.696016 |
-90.360157 |
G · OSM · A |
| 70 | Guinea | 10.434649 |
-10.943061 |
G · OSM · A |
| 71 | Guinea-Bissau | 12.026922 |
-14.977514 |
G · OSM · A |
| 72 | Guyana | 4.793462 |
-58.980115 |
G · OSM · A |
| 73 | Haiti | 18.938371 |
-72.690874 |
G · OSM · A |
| 74 | Honduras | 14.821009 |
-86.625227 |
G · OSM · A |
| 75 | Hungary | 47.163244 |
19.396759 |
G · OSM · A |
| 76 | Iceland | 64.998316 |
-18.596446 |
G · OSM · A |
| 77 | India | 22.887986 |
79.607122 |
G · OSM · A |
| 78 | Indonesia | -2.222961 |
117.270434 |
G · OSM · A |
| 79 | Iran | 32.570678 |
54.276947 |
G · OSM · A |
| 80 | Iraq | 33.039804 |
43.744977 |
G · OSM · A |
| 81 | Ireland | 53.178221 |
-8.145044 |
G · OSM · A |
| 82 | Israel | 31.447612 |
34.997009 |
G · OSM · A |
| 83 | Italy | 42.786668 |
12.071983 |
G · OSM · A |
| 84 | Jamaica | 18.155226 |
-77.31881 |
G · OSM · A |
| 85 | Japan | 37.551177 |
137.978348 |
G · OSM · A |
| 86 | Jordan | 31.245576 |
36.770923 |
G · OSM · A |
| 87 | Kazakhstan | 48.155651 |
67.286999 |
G · OSM · A |
| 88 | Kenya | 0.550766 |
37.82244 |
G · OSM · A |
| 89 | Kiribati | 0.615187 |
-51.525436 |
G · OSM · A |
| 90 | Kuwait | 29.340042 |
47.594623 |
G · OSM · A |
| 91 | Kyrgyzstan | 41.457672 |
74.531796 |
G · OSM · A |
| 92 | Laos | 18.502302 |
103.737872 |
G · OSM · A |
| 93 | Latvia | 56.85182 |
24.908622 |
G · OSM · A |
| 94 | Lebanon | 33.920093 |
35.87983 |
G · OSM · A |
| 95 | Lesotho | -29.57973 |
28.228623 |
G · OSM · A |
| 96 | Liberia | 6.452233 |
-9.319864 |
G · OSM · A |
| 97 | Libya | 27.030278 |
18.009605 |
G · OSM · A |
| 98 | Liechtenstein | 47.138206 |
9.5409 |
G · OSM · A |
| 99 | Lithuania | 55.327024 |
23.888249 |
G · OSM · A |
| 100 | Luxembourg | 49.766824 |
6.071764 |
G · OSM · A |
| 101 | Madagascar | -19.373168 |
46.705998 |
G · OSM · A |
| 102 | Malawi | -13.217226 |
34.289908 |
G · OSM · A |
| 103 | Malaysia | 3.792393 |
109.698868 |
G · OSM · A |
| 104 | Maldives | 3.827816 |
73.302271 |
G · OSM · A |
| 105 | Mali | 17.344163 |
-3.539079 |
G · OSM · A |
| 106 | Malta | 35.921027 |
14.403754 |
G · OSM · A |
| 107 | Marshall Islands | 7.114469 |
170.099531 |
G · OSM · A |
| 108 | Mauritania | 20.256218 |
-10.343398 |
G · OSM · A |
| 109 | Mauritius | -20.185542 |
57.849699 |
G · OSM · A |
| 110 | Mexico | 23.949171 |
-102.530308 |
G · OSM · A |
| 111 | Micronesia | 6.967277 |
155.260653 |
G · OSM · A |
| 112 | Moldova | 47.195102 |
28.461397 |
G · OSM · A |
| 113 | Monaco | 43.739846 |
7.398974 |
G · OSM · A |
| 114 | Mongolia | 46.825806 |
103.056287 |
G · OSM · A |
| 115 | Montenegro | 42.785818 |
19.2385 |
G · OSM · A |
| 116 | Morocco | 29.841692 |
-8.396435 |
G · OSM · A |
| 117 | Mozambique | -17.268722 |
35.53789 |
G · OSM · A |
| 118 | Myanmar | 21.16767 |
96.48929 |
G · OSM · A |
| 119 | Namibia | -22.129247 |
17.211133 |
G · OSM · A |
| 120 | Nauru | -0.520783 |
166.933132 |
G · OSM · A |
| 121 | Nepal | 28.247922 |
83.916253 |
G · OSM · A |
| 122 | Netherlands | 52.069791 |
5.216814 |
G · OSM · A |
| 123 | New Zealand | -41.829364 |
171.470705 |
G · OSM · A |
| 124 | Nicaragua | 12.845495 |
-85.03341 |
G · OSM · A |
| 125 | Niger | 17.418464 |
9.386034 |
G · OSM · A |
| 126 | Nigeria | 9.595315 |
8.091239 |
G · OSM · A |
| 127 | North Korea | 40.150643 |
127.183778 |
G · OSM · A |
| 128 | North Macedonia | 41.595005 |
21.68383 |
G · OSM · A |
| 129 | Norway | 68.794273 |
15.4096 |
G · OSM · A |
| 130 | Oman | 20.601918 |
56.092661 |
G · OSM · A |
| 131 | Pakistan | 29.948497 |
69.341343 |
G · OSM · A |
| 132 | Palau | 7.197636 |
134.348033 |
G · OSM · A |
| 133 | Panama | 8.514557 |
-80.121295 |
G · OSM · A |
| 134 | Papua New Guinea | -6.470121 |
145.231524 |
G · OSM · A |
| 135 | Paraguay | -23.227519 |
-58.398423 |
G · OSM · A |
| 136 | Peru | -9.154388 |
-74.378065 |
G · OSM · A |
| 137 | Philippines | 11.76275 |
122.874682 |
G · OSM · A |
| 138 | Poland | 52.124772 |
19.394322 |
G · OSM · A |
| 139 | Portugal | 39.587147 |
-8.590837 |
G · OSM · A |
| 140 | Qatar | 25.313075 |
51.186831 |
G · OSM · A |
| 141 | Romania | 45.853464 |
24.972942 |
G · OSM · A |
| 142 | Russia | 61.966853 |
96.627588 |
G · OSM · A |
| 143 | Rwanda | -1.992751 |
29.919061 |
G · OSM · A |
| 144 | Saint Kitts and Nevis | 17.271042 |
-62.698545 |
G · OSM · A |
| 145 | Saint Lucia | 13.902671 |
-60.970316 |
G · OSM · A |
| 146 | Saint Vincent and the Grenadines | 13.216216 |
-61.203353 |
G · OSM · A |
| 147 | Samoa | -13.754596 |
-172.161249 |
G · OSM · A |
| 148 | San Marino | 43.936466 |
12.442223 |
G · OSM · A |
| 149 | Sao Tome and Principe | 0.444259 |
6.726442 |
G · OSM · A |
| 150 | Saudi Arabia | 24.122327 |
44.536864 |
G · OSM · A |
| 151 | Senegal | 14.367789 |
-14.471306 |
G · OSM · A |
| 152 | Serbia | 44.222148 |
20.789252 |
G · OSM · A |
| 153 | Seychelles | -6.489978 |
52.062316 |
G · OSM · A |
| 154 | Sierra Leone | 8.563086 |
-11.795016 |
G · OSM · A |
| 155 | Singapore | 1.358921 |
103.813468 |
G · OSM · A |
| 156 | Slovakia | 48.704935 |
19.480383 |
G · OSM · A |
| 157 | Slovenia | 46.116119 |
14.808104 |
G · OSM · A |
| 158 | Solomon Islands | -8.909583 |
159.638095 |
G · OSM · A |
| 159 | Somalia | 4.748837 |
45.706144 |
G · OSM · A |
| 160 | South Africa | -29.015029 |
25.163341 |
G · OSM · A |
| 161 | South Korea | 36.373353 |
127.819094 |
G · OSM · A |
| 162 | South Sudan | 7.283531 |
30.30112 |
G · OSM · A |
| 163 | Spain | 40.227234 |
-3.652637 |
G · OSM · A |
| 164 | Sri Lanka | 7.615915 |
80.703163 |
G · OSM · A |
| 165 | Sudan | 15.980242 |
29.935402 |
G · OSM · A |
| 166 | Suriname | 4.131245 |
-55.911071 |
G · OSM · A |
| 167 | Sweden | 62.7771 |
16.754466 |
G · OSM · A |
| 168 | Switzerland | 46.798957 |
8.215354 |
G · OSM · A |
| 169 | Syria | 35.023003 |
38.504565 |
G · OSM · A |
| 170 | Taiwan | 23.752985 |
120.949875 |
G · OSM · A |
| 171 | Tajikistan | 38.529886 |
71.015834 |
G · OSM · A |
| 172 | Tanzania | -6.275097 |
34.813586 |
G · OSM · A |
| 173 | Thailand | 15.1144 |
101.003333 |
G · OSM · A |
| 174 | Timor-Leste | -8.823779 |
125.851076 |
G · OSM · A |
| 175 | Togo | 8.526788 |
0.962272 |
G · OSM · A |
| 176 | Tonga | -20.066556 |
-174.868512 |
G · OSM · A |
| 177 | Trinidad and Tobago | 10.46883 |
-61.25845 |
G · OSM · A |
| 178 | Tunisia | 34.119405 |
9.554626 |
G · OSM · A |
| 179 | Turkmenistan | 39.115934 |
59.375961 |
G · OSM · A |
| 180 | Tuvalu | -7.759093 |
178.520378 |
G · OSM · A |
| 181 | Türkiye | 39.245472 |
35.487361 |
G · OSM · A |
| 182 | Uganda | 1.275691 |
32.36704 |
G · OSM · A |
| 183 | Ukraine | 49.160078 |
31.255306 |
G · OSM · A |
| 184 | United Arab Emirates | 23.907828 |
54.303746 |
G · OSM · A |
| 185 | United Kingdom | 54.147048 |
-2.886952 |
G · OSM · A |
| 186 | United States | 39.833333 |
-98.583333 |
G · OSM · A |
| 187 | Uruguay | -32.798251 |
-56.01713 |
G · OSM · A |
| 188 | Uzbekistan | 41.755984 |
63.140411 |
G · OSM · A |
| 189 | Vanuatu | -16.201268 |
167.700844 |
G · OSM · A |
| 190 | Vatican City | 41.903314 |
12.453418 |
G · OSM · A |
| 191 | Venezuela | 7.127732 |
-66.16884 |
G · OSM · A |
| 192 | Vietnam | 16.642183 |
106.300935 |
G · OSM · A |
| 193 | Yemen | 15.905421 |
47.590602 |
G · OSM · A |
| 194 | Zambia | -13.46011 |
27.774212 |
G · OSM · A |
| 195 | Zimbabwe | -19.002537 |
29.851885 |
G · OSM · A |
| Source | License | Usage |
|---|---|---|
| Natural Earth | Public Domain | Country boundary polygons |
| GADM 4.1 | Academic use | Detailed boundary data |
| datasets/geo-countries | Open Data Commons | GeoJSON country polygons |
All centroids use WGS84 (standard GPS coordinate system), 6-decimal precision.
- Country boundary polygon obtained from Natural Earth / GADM 4.1
- Centroid calculated using area-weighted polygon averaging
- For non-contiguous territories, the largest polygon is used
- Coordinates stored in decimal degrees, WGS84 ellipsoid
The geometric centroid may fall outside the country boundary for concave-shaped countries. This is mathematically correct behavior — see methodology page.
Open Academic License (OAL-NC 1.0) — Free for academic, educational, and non-commercial use.
Required attribution:
Geographic centroid data © Middle of Countries (middleofcountries.github.io)
Licensed under Open Academic License (OAL-NC 1.0)
Source: Natural Earth / GADM 4.1 / WGS84
For commercial use: middleofcountries@gmail.com
- Data correction: Open an issue with country name, current and correct coordinates, and source
- Feature request: Suggest here
- Bug report: Report here
- Translation: Help add more languages
- Documentation: docs.html
- Site: middleofcountries.github.io
- Email: middleofcountries@gmail.com
- Issues: github.com/middleofcountries
- Docs: middleofcountries.github.io/docs.html
geography geographic-center centroid world-map interactive-map coordinates
natural-earth gadm wgs84 geojson countries cartography gis
educational academic open-data multilingual javascript leaflet
country-list latitude longitude google-maps openstreetmap apple-maps