]> git.openstreetmap.org Git - nominatim.git/blob - docs/customize/Special-Phrases.md
Merge pull request #3363 from mtmail/docs-link-correction
[nominatim.git] / docs / customize / Special-Phrases.md
1 # Special phrases
2
3 ## Importing OSM user-maintained special phrases
4
5 As described in the [Import section](../admin/Import.md), it is possible to
6 import special phrases from the wiki with the following command:
7
8 ```sh
9 nominatim special-phrases --import-from-wiki
10 ```
11
12 ## Importing custom special phrases
13
14 But, it is also possible to import some phrases from a csv file. 
15 To do so, you have access to the following command:
16
17 ```sh
18 nominatim special-phrases --import-from-csv <csv file>
19 ```
20
21 Note that the two previous import commands will update the phrases from your database.
22 This means that if you import some phrases from a csv file, only the phrases
23 present in the csv file will be kept into the database. All other phrases will
24 be removed.
25
26 If you want to only add new phrases and not update the other ones you can add
27 the argument `--no-replace` to the import command. For example:
28
29 ```sh
30 nominatim special-phrases --import-from-csv <csv file> --no-replace
31 ```
32
33 This will add the phrases present in the csv file into the database without
34 removing the other ones.