-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathplaces.json
57 lines (57 loc) · 2.16 KB
/
places.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
"type": "overpass",
"name": {
"ast": "Llugares",
"ca": "Llocs",
"cs": "Sídla",
"de": "Orte",
"el": "Μέρη",
"en": "Places",
"es": "Lugares",
"et": "Kohad",
"fr": "Lieux",
"gl": "Lugares",
"hu": "Helyek",
"it": "Luoghi",
"ja": "場所",
"nb": "Steder",
"nl": "Plaatsen",
"oc": "Luòcs",
"pl": "Miejsca",
"pt": "Lugares",
"pt-br": "Lugares",
"ro": "Locuri",
"ru": "Места",
"sr": "Места",
"tr": "Yerler",
"uk": "Місцевість"
},
"query": {
"0": "node[place~'^(continent)$']",
"4": "node[place~'^(continent|country)$']",
"6": "node[place~'^(country|city)$']",
"8": "node[place~'^(country|city|state)$']",
"11": "node[place~'^(city|state|region|town|village)$']",
"13": "node[place~'^(city|state|region|town|village|suburb|hamlet|quarter)$']",
"15": "node[place~'^(city|region|town|village|suburb|hamlet|quarter)$']",
"16": "(node[place~'^(region|town|village|suburb|hamlet|quarter|islet|isolated_dwelling|neighbourhood|farm)$'];way[place~'^(isolated_dwelling|neighbourhood|farm)$'];relation[place~'^(isolated_dwelling|neighbourhood|farm)$'];);"
},
"feature": {
"title": "{% set loc_name = localizedTag(tags, 'name') %}{{ loc_name }}{% if loc_name != tags.name %} ({{ tags.name }}){% endif %}",
"description": "{{ tagTrans('place', tags.place) }}",
"body": "{% if tags.population %}{{ keyTrans('population') }}: {{ tags.population }}{% endif %}",
"priority": "{% set priorities = { 'continent': 0, 'country': 1, 'state': 2, 'region': 3, 'city': 4, 'town': 5, 'village': 6, 'suburb': 7, 'hamlet': 8, 'quarter': 9, neighbourhood: 10, 'isolated_dwelling': 11, 'farm': 12 } %}{{ priorities[tags.place] }}"
},
"filter": {
"name": {
"key": [
"name",
"name:*"
],
"name": "{{ keyTrans('name') }}",
"type": "text",
"change_on": "keyup",
"op": "strsearch"
}
}
}