Skip to content

Commit b08200d

Browse files
committed
add definitions for the structure of 31 relation presets
1 parent 26abac8 commit b08200d

31 files changed

+549
-30
lines changed

data/presets/area.json

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,35 @@
1212
"polygon"
1313
],
1414
"name": "Area",
15-
"matchScore": 0.1
15+
"matchScore": 0.1,
16+
"relation": {
17+
"allowDuplicateMembers": false,
18+
"members": [
19+
{
20+
"roles": {
21+
"inner": "Inner"
22+
},
23+
"geometry": [
24+
"line",
25+
"area"
26+
],
27+
"matchTags": [
28+
{}
29+
]
30+
},
31+
{
32+
"roles": {
33+
"outer": "Outer"
34+
},
35+
"geometry": [
36+
"line",
37+
"area"
38+
],
39+
"matchTags": [
40+
{}
41+
],
42+
"min": 1
43+
}
44+
]
45+
}
1646
}

data/presets/public_transport/stop_area.json

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,62 @@
1717
"key": "public_transport",
1818
"value": "stop_area"
1919
},
20-
"name": "Transit Stop Area"
20+
"name": "Transit Stop Area",
21+
"relation": {
22+
"allowDuplicateMembers": false,
23+
"members": [
24+
{
25+
"roles": {
26+
"stop": "Stop"
27+
},
28+
"geometry": [
29+
"point",
30+
"vertex"
31+
],
32+
"matchTags": [
33+
{
34+
"public_transport": "stop_position"
35+
}
36+
]
37+
},
38+
{
39+
"roles": {
40+
"platform": "Platform"
41+
},
42+
"geometry": [
43+
"point",
44+
"vertex",
45+
"line",
46+
"area"
47+
],
48+
"matchTags": [
49+
{
50+
"public_transport": "platform"
51+
}
52+
]
53+
},
54+
{
55+
"roles": {
56+
"entrance": "Entrance",
57+
"subway_entrance": "Subway Entrance"
58+
},
59+
"matchTags": [
60+
{
61+
"entrance": "*"
62+
},
63+
{
64+
"railway": "subway_entrance"
65+
}
66+
],
67+
"geometry": [
68+
"vertex"
69+
]
70+
},
71+
{
72+
"matchTags": [
73+
{}
74+
]
75+
}
76+
]
77+
}
2178
}

data/presets/type/boundary.json

Lines changed: 61 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,65 @@
1010
"tags": {
1111
"type": "boundary"
1212
},
13-
"name": "Boundary"
13+
"name": "Boundary",
14+
"relation": {
15+
"allowDuplicateMembers": false,
16+
"members": [
17+
{
18+
"roles": {
19+
"inner": "Inner"
20+
},
21+
"geometry": [
22+
"line",
23+
"area"
24+
],
25+
"matchTags": [
26+
{}
27+
]
28+
},
29+
{
30+
"roles": {
31+
"outer": "Outer"
32+
},
33+
"geometry": [
34+
"line",
35+
"area"
36+
],
37+
"matchTags": [
38+
{}
39+
],
40+
"min": 1
41+
},
42+
{
43+
"roles": {
44+
"admin_centre": "Admin Center",
45+
"label": "Label"
46+
},
47+
"geometry": [
48+
"point",
49+
"vertex"
50+
],
51+
"matchTags": [
52+
{
53+
"place": "*"
54+
}
55+
],
56+
"max": 1
57+
},
58+
{
59+
"roles": {
60+
"subarea": "Sub-Area"
61+
},
62+
"geometry": [
63+
"area",
64+
"relation"
65+
],
66+
"matchTags": [
67+
{
68+
"type": "boundary"
69+
}
70+
]
71+
}
72+
]
73+
}
1474
}

data/presets/type/boundary/administrative.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818
"key": "boundary",
1919
"value": "administrative"
2020
},
21-
"name": "Administrative Boundary"
21+
"name": "Administrative Boundary",
22+
"relationCrossReference": "{type/boundary}"
2223
}

data/presets/type/destination_sign.json

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,64 @@
1515
"terms": [
1616
"exit sign"
1717
],
18-
"name": "Destination Sign"
18+
"name": "Destination Sign",
19+
"relation": {
20+
"allowDuplicateMembers": true,
21+
"members": [
22+
{
23+
"roles": {
24+
"from": "From"
25+
},
26+
"geometry": [
27+
"vertex",
28+
"line"
29+
],
30+
"matchTags": [
31+
{
32+
"highway": "*"
33+
}
34+
]
35+
},
36+
{
37+
"roles": {
38+
"intersection": "Intersection"
39+
},
40+
"geometry": [
41+
"vertex"
42+
],
43+
"matchTags": [
44+
{}
45+
],
46+
"max": 1
47+
},
48+
{
49+
"roles": {
50+
"to": "To"
51+
},
52+
"geometry": [
53+
"vertex",
54+
"line"
55+
],
56+
"matchTags": [
57+
{
58+
"highway": "*"
59+
}
60+
],
61+
"min": 1,
62+
"max": 1
63+
},
64+
{
65+
"roles": {
66+
"sign": "Physical Sign"
67+
},
68+
"geometry": [
69+
"point",
70+
"vertex"
71+
],
72+
"matchTags": [
73+
{}
74+
]
75+
}
76+
]
77+
}
1978
}

data/presets/type/enforcement.json

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,66 @@
99
"tags": {
1010
"type": "enforcement"
1111
},
12-
"name": "Enforcement"
12+
"name": "Enforcement",
13+
"relation": {
14+
"allowDuplicateMembers": false,
15+
"members": [
16+
{
17+
"roles": {
18+
"device": "Device",
19+
"force": "Force"
20+
},
21+
"matchTags": [
22+
{
23+
"highway": "speed_camera"
24+
},
25+
{
26+
"man_made": "surveillance"
27+
},
28+
{
29+
"amenity ": "weighbridge"
30+
}
31+
]
32+
},
33+
{
34+
"roles": {
35+
"from": "From"
36+
},
37+
"geometry": [
38+
"vertex",
39+
"line"
40+
],
41+
"matchTags": [
42+
{
43+
"highway": "*"
44+
}
45+
]
46+
},
47+
{
48+
"roles": {
49+
"to": "To"
50+
},
51+
"geometry": [
52+
"vertex",
53+
"line"
54+
],
55+
"matchTags": [
56+
{
57+
"highway": "*"
58+
}
59+
]
60+
},
61+
{
62+
"roles": {
63+
"section": "Section"
64+
},
65+
"geometry": [
66+
"line"
67+
],
68+
"matchTags": [
69+
{}
70+
]
71+
}
72+
]
73+
}
1374
}

data/presets/type/enforcement/maxspeed.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,6 @@
1919
"radar",
2020
"speed camera"
2121
],
22-
"name": "Speed Limit Enforcement"
22+
"name": "Speed Limit Enforcement",
23+
"relationCrossReference": "{type/enforcement}"
2324
}

data/presets/type/multipolygon.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@
88
},
99
"removeTags": {},
1010
"name": "Multipolygon",
11-
"matchScore": 0.1
11+
"matchScore": 0.1,
12+
"relationCrossReference": "{area}"
1213
}

data/presets/type/public_transport/stop_area_group.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,21 @@
1717
"key": "public_transport",
1818
"value": "stop_area_group"
1919
},
20-
"name": "Transit Stop Area Group"
20+
"name": "Transit Stop Area Group",
21+
"relation": {
22+
"allowDuplicateMembers": false,
23+
"members": [
24+
{
25+
"matchTags": [
26+
{
27+
"type": "public_transport",
28+
"public_transport": "stop_area"
29+
}
30+
],
31+
"geometry": [
32+
"relation"
33+
]
34+
}
35+
]
36+
}
2137
}

0 commit comments

Comments
 (0)