Map English names of village locations to their native names
Note: Output CSV files are stored in an outputs
folder in this repo. You can map a volume on your local machine to the container folder using -v
as shown below.
The container runs under UID 1000 and GID 1000. Adjust the host machine accordingly. Most linux machines automatically have UID and GID 1000 assigned to the first user created.
Run:
export countryCode=<countryCode>
docker run -d --name ${countryCode} -e countryCode=${countryCode} -v <absolute_path_on_host>:/app/outputs samgabrail/cotw:latest
Example:
export countryCode=ETH
docker run -d --name ${countryCode} -e countryCode=${countryCode} -v /home/ubuntu/cotw/outputs:/app/outputs samgabrail/cotw:latest
Clone this repository. Then run:
export countryCode=<countryCode>
python main.py
Example:
export countryCode=BTN
python main.py
- Get the adm key from translator api and calculate the adm level for each key by counting the dashes
- Loop over a country code and get the most zoomed in adm key from GIS along with the max and min long and lat coordinates of the polygon (south, west, north, east) coordinates
- Pass these coordinates into OSM to find the tags for the names of the village and hopefully find the native name there
- Output 2 CSV files, one matches the format needed by the translator app and the other includes more information from the OSM tags. They are prefixed with
outputTranslator{CountryCode}
andoutputRaw{CountryCode}
, respectively - Upload the
outputTranslator{CountryCode}
file to the translator app manually
2 files for each country. Files are located in the outputs
folder