This project is intended to select locations around the globe randomly , by these locations we can get the number of community convinent for Global Assembly.
To achieve the random selection we used a python script (global-select-admin-centroids.py) to compute against the world population obtained from NASA.
To make installation ypu will have to:
-
Clone the repo
-
Download the global population datasets here (You may have to create an account with them)
-
Downlaod the UN country file here
-
After the installation you have to change the root (global_pop_admin_centroids_file_root) and (global_pop_output_file_root) to reflect where you have your global population datasets
- Running the script locally you can use
python3 global-select-admin-centroids.py
-
As the script is running it will update you with which it is reading from datasets
-
The results will be available in the file called (gobal-ca-people-points.csv)
By using an express app , you can expose different endpoints to interacts with the script and its results here are the sets to follow:
-
Have a server ready with node installed
-
Clone the repo
-
Have the Global population datasets on server. You can find them here
-
Make changes in the script in reflect the root location of your datasets.
-
Server your express app (using your convinient ways)
-
There are various endpoints we have (eg: /run ( to execute the script) or /read ( to read the results ))