pythongeospatialgeopyiso-3166

How to find centroids or geolocate ISO 3166 codes?


Is there a way to geolocate ISO 3166-1 alpha-3 codes (see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes) and get the centroid of the item ?

I would like to place a marker (a disk proportionnal to a quantity) for different countries indicated by the ISO 3166.

I work with python and have tested geopy.geocoders but without success.

Any help welcomed


Solution

  • It sounds like you want the geographic center of countries. This type of data is commonly avaliable and here is one such place you can download it.

    Here is a second resource which does include both Hong Kong snd Taiwan.