Skip to content

Commit fbebfb8

Browse files
author
David Karlaš
committed
[Divisions] Add support for Geographical Regions
There are many regions in the world that people often search and some apps might want to highlight on map when searched for.
1 parent f6ebd34 commit fbebfb8

File tree

8 files changed

+398
-3
lines changed

8 files changed

+398
-3
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
id: counterexample:division:bad-geographical-region
3+
type: Feature
4+
geometry:
5+
type: Point
6+
coordinates: [0, 0]
7+
properties:
8+
theme: divisions
9+
type: division
10+
version: 0
11+
subtype: geographical_region
12+
class: invalid_class
13+
names:
14+
primary: A division with an invalid class.
15+
hierarchies:
16+
- - division_id: counterexample:bad-geographical-region
17+
subtype: geographical_region
18+
name: A division with an invalid class.
19+
ext_expected_errors:
20+
- value must be one of 'megacity', 'city', 'town', 'village', 'hamlet', 'disputed', 'region', 'former_administrative_division'

counterexamples/divisions/division_area/missing-properties.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ properties:
99
type: division_area
1010
version: 0
1111
ext_expected_errors:
12-
- " missing properties 'names', 'subtype', 'class', 'country', 'division_id'"
12+
- " missing properties 'names', 'subtype', 'class', 'division_id'"

docs/schema/reference/divisions/division.mdx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ Currently, the following subtypes are available in the `division` feature type:
5353
- `macrohood`
5454
- `neighborhood`
5555
- `microhood`
56+
- `geographical_region`
5657

5758
<Tabs>
5859
<TabItem value="country" label="country" default>
@@ -190,6 +191,22 @@ A microhood is a mini-neighborhood that is contained within a neighborhood. Exam
190191
</TabItem>
191192
</Tabs>
192193

194+
<TabItem value="geographical_region" label="geographical_region" default>
195+
<table>
196+
<tbody>
197+
<tr>
198+
<th><code>subtype</code></th>
199+
<td><code>geographical_region</code></td>
200+
</tr>
201+
</tbody>
202+
</table>
203+
204+
205+
A geographical region that is not administrative. Examples: Middle east, Appalachia, Baltics, Intermediate and Immediate geographic regions in Brazil, Snowbelt, Caribbean, etc.
206+
207+
</TabItem>
208+
</Tabs>
209+
193210

194211
## Schema
195212

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
id: example:division:middle_east
3+
type: Feature
4+
geometry:
5+
type: Point
6+
coordinates: [-100.4458820, 39.7837304]
7+
properties:
8+
theme: divisions
9+
type: division
10+
version: 0
11+
subtype: geographical_region
12+
names:
13+
primary: Middle East
14+
hierarchies:
15+
- - division_id: example:division:middle_east
16+
subtype: geographical_region
17+
name: Middle East
Lines changed: 311 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,311 @@
1+
---
2+
id: example:division_area:middle_east
3+
type: Feature
4+
geometry:
5+
type: MultiPolygon
6+
coordinates: [
7+
[
8+
[
9+
[-170.6290015, 25.3053671],
10+
[-170.4076134, 25.5082632],
11+
[-170.6300336, 25.7076006],
12+
[-170.8506754, 25.5056948],
13+
[-170.6290015, 25.3053671]
14+
]
15+
],
16+
[
17+
[
18+
[-171.7380245, 25.555318],
19+
[-171.4949943, 25.7747795],
20+
[-171.726725, 25.9865667],
21+
[-171.9674222, 25.7845748],
22+
[-171.7380245, 25.555318]
23+
]
24+
],
25+
[
26+
[
27+
[-174.0155727, 25.8411597],
28+
[-173.7437151, 26.0119599],
29+
[-173.905507, 26.2639004],
30+
[-174.2280618, 26.0816774],
31+
[-174.0155727, 25.8411597]
32+
]
33+
],
34+
[
35+
[
36+
[-175.9506918, 27.5543172],
37+
[-175.5545765, 27.7281369],
38+
[-175.6295776, 28.1237431],
39+
[-176.1866168, 27.9330153],
40+
[-175.9506918, 27.5543172]
41+
]
42+
],
43+
[
44+
[
45+
[-166.1182936, 23.4254685],
46+
[-165.8702478, 23.8636297],
47+
[-166.3767961, 24.0561939],
48+
[-166.5303209, 23.7815879],
49+
[-166.1182936, 23.4254685]
50+
]
51+
],
52+
[
53+
[
54+
[-167.9975573, 24.7968943],
55+
[-167.778217, 25.0023686],
56+
[-168.005803, 25.20088],
57+
[-168.2206497, 24.9967937],
58+
[-167.9975573, 24.7968943]
59+
]
60+
],
61+
[
62+
[
63+
[-157.4082814, 55.576068],
64+
[-157.1024297, 55.6733491],
65+
[-157.0908436, 55.8696588],
66+
[-157.7232999, 55.870247],
67+
[-157.4082814, 55.576068]
68+
]
69+
],
70+
[
71+
[
72+
[-155.6071465, 55.55087],
73+
[-155.2980807, 56.0385909],
74+
[-156.1270413, 55.9006965],
75+
[-156.0182299, 55.6525826],
76+
[-155.6071465, 55.55087]
77+
]
78+
],
79+
[
80+
[
81+
[-178.3063127, 28.1837783],
82+
[-178.0577766, 28.4309636],
83+
[-178.3589518, 28.655272],
84+
[-178.60056, 28.4012455],
85+
[-178.3063127, 28.1837783]
86+
]
87+
],
88+
[
89+
[
90+
[-179.1390989, 51.0070029],
91+
[-173.0611771, 51.8159234],
92+
[-171.9740685, 52.3514335],
93+
[-178.9229631, 52.0275532],
94+
[-179.1390989, 51.0070029]
95+
]
96+
],
97+
[
98+
[
99+
[-180, 51.7940888],
100+
[-179.8836979, 51.9764894],
101+
[-180, 52.138489],
102+
[-180, 51.8434509],
103+
[-180, 51.7940888]
104+
]
105+
],
106+
[
107+
[
108+
[-170.3952428, 56.8431693],
109+
[-169.6956679, 57.0307607],
110+
[-169.5801239, 57.2365744],
111+
[-170.6525321, 57.3494254],
112+
[-170.3952428, 56.8431693]
113+
]
114+
],
115+
[
116+
[
117+
[-169.5771945, 56.3323838],
118+
[-169.1322924, 56.6737641],
119+
[-170.1288343, 56.6777795],
120+
[-170.0250438, 56.4580184],
121+
[-169.5771945, 56.3323838]
122+
]
123+
],
124+
[
125+
[
126+
[-168.0561273, 64.76067],
127+
[-167.5930406, 65.0286657],
128+
[-168.5591053, 65.007885],
129+
[-168.4482776, 64.8327172],
130+
[-168.0561273, 64.76067]
131+
]
132+
],
133+
[
134+
[
135+
[-156.6720152, 20.3000654],
136+
[-155.800111, 20.8826396],
137+
[-158.455088, 21.6943824],
138+
[-158.2462379, 21.1430868],
139+
[-156.6720152, 20.3000654]
140+
]
141+
],
142+
[
143+
[
144+
[-160.5398128, 21.4482644],
145+
[-159.3028431, 21.7124132],
146+
[-159.1241278, 22.2798801],
147+
[-160.2161715, 22.1993854],
148+
[-160.5398128, 21.4482644]
149+
]
150+
],
151+
[
152+
[
153+
[-161.9236658, 22.8550496],
154+
[-161.6972866, 23.0665997],
155+
[-161.9360903, 23.2652845],
156+
[-162.1455351, 23.0568827],
157+
[-161.9236658, 22.8550496]
158+
]
159+
],
160+
[
161+
[
162+
[-164.7000199, 23.3734366],
163+
[-164.4760626, 23.575844],
164+
[-164.7056774, 23.7796906],
165+
[-164.9238496, 23.5726775],
166+
[-164.7000199, 23.3734366]
167+
]
168+
],
169+
[
170+
[
171+
[-155.6810194, 18.7091718],
172+
[-154.595509, 19.5434371],
173+
[-155.877534, 20.4681176],
174+
[-156.2732568, 19.7049213],
175+
[-155.6810194, 18.7091718]
176+
]
177+
],
178+
[
179+
[
180+
[-82.8732511, 24.4116731],
181+
[-82.5948517, 24.5902399],
182+
[-82.7300073, 24.8395704],
183+
[-83.153058, 24.6776636],
184+
[-82.8732511, 24.4116731]
185+
]
186+
],
187+
[
188+
[
189+
[-81.8773353, 24.2520071],
190+
[-68.1545602, 47.3251568],
191+
[-82.6797222, 41.6765556],
192+
[-84.129, 46.5305],
193+
[-94.9573889, 49.3701944],
194+
[-125.0271096, 48.4630615],
195+
[-119.6795205, 33.0665347],
196+
[-97.40561, 25.83764],
197+
[-84.0549877, 29.8627705],
198+
[-81.8773353, 24.2520071]
199+
]
200+
],
201+
[
202+
[
203+
[179.2356588, 51.1468561],
204+
[178.6498473, 52.169477],
205+
[176.8813625, 51.9348227],
206+
[177.1853792, 51.6303915],
207+
[179.2356588, 51.1468561]
208+
]
209+
],
210+
[
211+
[
212+
[179.6302237, 51.6862391],
213+
[180, 52.1384488],
214+
[179.2193828, 52.1042624],
215+
[179.2227021, 51.833522],
216+
[179.6302237, 51.6862391]
217+
]
218+
],
219+
[
220+
[
221+
[175.915408, 52.1325238],
222+
[176.2623207, 52.4572425],
223+
[175.5671255, 52.4969017],
224+
[175.5586568, 52.2829505],
225+
[175.915408, 52.1325238]
226+
]
227+
],
228+
[
229+
[
230+
[173.6474085, 52.1472948],
231+
[174.8392132, 52.6878183],
232+
[172.1158739, 52.9881155],
233+
[173.132385, 52.2506975],
234+
[173.6474085, 52.1472948]
235+
]
236+
],
237+
[
238+
[
239+
[-146.3855284, 59.1843829],
240+
[-145.9234279, 59.3169728],
241+
[-145.8952803, 59.5345003],
242+
[-146.6535985, 59.6545361],
243+
[-146.3855284, 59.1843829]
244+
]
245+
],
246+
[
247+
[
248+
[-171.2797217, 52.2444061],
249+
[-145.9885379, 60.1761058],
250+
[-130.003485, 56.008075],
251+
[-141.00198, 60.3063692],
252+
[-140.7523256, 69.8283004],
253+
[-156.6515529, 71.581159],
254+
[-169.0485821, 65.4690061],
255+
[-161.2500247, 63.8004626],
256+
[-167.6542464, 59.9434356],
257+
[-158.0753114, 57.7475562],
258+
[-171.2797217, 52.2444061]
259+
],
260+
[
261+
[-153.8125943, 58.0958144],
262+
[-153.5773523, 58.3547948],
263+
[-153.3559904, 58.4231127],
264+
[-153.6200524, 58.260124],
265+
[-153.8125943, 58.0958144]
266+
],
267+
[
268+
[-153.1820044, 58.5355625],
269+
[-153.1751501, 58.5480609],
270+
[-153.1384992, 58.5678286],
271+
[-153.1470249, 58.5552926],
272+
[-153.1820044, 58.5355625]
273+
],
274+
[
275+
[-152.8741566, 58.7660471],
276+
[-152.9882543, 59.4696836],
277+
[-152.1322999, 60.0079718],
278+
[-152.330171, 59.1676267],
279+
[-152.8741566, 58.7660471]
280+
]
281+
],
282+
[
283+
[
284+
[-172.7696055, 59.9963072],
285+
[-171.8272619, 60.3517559],
286+
[-173.4406927, 60.7880772],
287+
[-173.4413238, 60.4223353],
288+
[-172.7696055, 59.9963072]
289+
]
290+
],
291+
[
292+
[
293+
[-169.6463302, 62.736964],
294+
[-168.2509717, 63.332816],
295+
[-172.2753008, 63.6094455],
296+
[-172.0058757, 63.2057208],
297+
[-169.6463302, 62.736964]
298+
]
299+
]
300+
]
301+
properties:
302+
theme: divisions
303+
type: division_area
304+
version: 0
305+
subtype: geographical_region
306+
class: land
307+
is_land: true
308+
is_territorial: true
309+
division_id: example:division:middle_east
310+
names:
311+
primary: Middle East

0 commit comments

Comments
 (0)