world-countries-centroids
v1.0.0
Published
Centroids of world countries in CSV, GeoJson, etc
Downloads
18
Maintainers
Readme
World Countries - Centroids
Centroids of world countries in CSV, GeoJson, etc
Background/Problems
- There is no generally accepted definition of geographic center, and no completely satisfactory method for determining it. (USGS)
- The geographic center of a region is a fundamental geographic concept, and yet there is no commonly accepted method for its determination. (Peter A. Rogerson)
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.
Schema
longitude
latitude
COUNTRY
- country nameISO
- country ISO codeCOUNTRYAFF
- country affiliatedAFF_ISO
- country affiliated ISO code
Data Usage
There are multiple ways to access the data.
Download
Go to the releases page to download, then check the dist folder for the data files.
REST API (ArcGIS Feature Service)
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:
REST call - all data
Use JSDelivr to get all the data as CSV or GeoJSON:
- https://cdn.jsdelivr.net/gh/gavinr/world-countries-centroids@v1/dist/countries.geojson
- https://cdn.jsdelivr.net/gh/gavinr/world-countries-centroids@v1/dist/countries.csv
NPM
https://www.npmjs.com/package/world-countries-centroids
License
See LICENSE file.