Centroids of world countries in CSV, GeoJson, etc
Version 1.0 has been updated to use the centroid of the largest land mass. This way large countries with many disparate areas (like USA, New Zealand, Chile, Portugal) have more rational center points.
longitude
latitude
COUNTRY
- country nameISO
- country ISO codeCOUNTRYAFF
- country affiliatedAFF_ISO
- country affiliated ISO codeThere are multiple ways to access the data.
Go to the releases page to download, then check the dist folder for the data files.
The data is also published to an ArcGIS Online hosted feature service. The REST endpoint to query is:
https://services9.arcgis.com/l9yXFvhjz46ekkZV/arcgis/rest/services/Countries_Centroids/FeatureServer/0/query
For example, get the center point of Mexico:
... or for USA and territories: https://services9.arcgis.com/l9yXFvhjz46ekkZV/ArcGIS/rest/services/Countries_Centroids/FeatureServer/0/query?where=AFF_ISO%3D%27US%27&outFields=*&f=pgeojson (Preview)
Use JSDelivr to get all the data as CSV or GeoJSON:
https://www.npmjs.com/package/world-countries-centroids
See LICENSE file.