includes manual synonyms protocol

This commit is contained in:
Carla
2014-08-12 18:27:18 +02:00
parent 958e129d1b
commit f859f7b62a

View File

@@ -31,10 +31,21 @@ sql/subdivide_polygons.sql
## Admin0_synonyms
Documentation for the creation of the geocoder synonym tables.
In order to add new entries manually for admin0, table [admin0_synonym_additions](https://geocoding.cartodb.com/tables/admin0_synonym_additions) has been created.
For use with the admin0_geocoder.
The table contains the following columns to be populated:
1. **adm0_a3** : ISO code for the region. Used to get the unique geometry for the region in terms of the synonym.
2. **name**: Actually, the synonym you want to include for a specific region (identified ad adm0_a3).
3. notes: Extra information as the source of the data. Use: 'data source: X'.
4. rank: Use '9' for manually curated additions.
The following query can be used:
````
INSERT INTO admin0_synonym_additions (adm0_a3, name, notes, rank) VALUES ($iso3_code, $synonym, $notes, 9)
````
**Note:** If you need a complete dataset to be included, please create a new issue in order to add it to the build script.
### Ranks