Note
Scripted imports and automated edits should only be carried out by those with experience and understanding of the way the OpenStreetMap community creates maps. See the Import/Guidelines and Automated Edits/Code of Conduct for more information.
- Uses tilereduce - osm-tag-stats to extract
name
tags which don't havename:kn tags
(seetags.json
file for filters). - Uses geojson output of tilereduce and converts to csv for easy translation.
- Uses osmapi a python module to upload the changed
name:kn
tags to OPenStreetMap. (add user credentials inupload.py
script)
Sample CSV
id,type,name:kn
4305340953,node,<your-translation>
.....
Arguments required
username
: OpenStreetMap username
(Note: Create your test account in OSM dev server if you are testing. You need to create your custom data while testing)userPassword
: Your associated account password (****)inputFile
: Inputcsv
file with translationsinputLanguage
: Language-code tag to which the translations are updated (examplekn
)logFile
: A log file which logs all the activities
How to execute
python upload.py <osm-username> <password> <inputfile.csv> <languagecode> <outputLog>