You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+27-4Lines changed: 27 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,13 @@ attribute | description
150
150
`Territory_Number` | `Territory_Range`
151
151
return value | boolean, True if and only if the `Territory_Number` has some subdivisions
152
152
153
+
`Get_Subdivisions_With` returns the array of territories with the same suffix as provided.
154
+
155
+
attribute | description
156
+
--- | ---
157
+
`Territory_Number` | `Territory_Range`
158
+
return value | array of `Territory_Range` that have the same subdivision name as the one of `Territory_Number`
159
+
153
160
## Converting a Coordinate into Mapcodes
154
161
155
162
In the mapcode system, territories are limited by rectangles, not by actual or
@@ -292,6 +299,7 @@ Usage:
292
299
-h // This help
293
300
-t <territory> // Territory info
294
301
-s <name> // Search territory
302
+
-S <name> // Subdirectories
295
303
-d <territory_mapcode> // Decode
296
304
-c <lat> <lon> [ <options> ] // Encode
297
305
-a <territory_mapcode> [ <options> ] // Alternative mapcodes
@@ -310,20 +318,35 @@ and Shortest => True and to display the first entry of the returnd array.
310
318
311
319
Examples:
312
320
313
-
Put information on a territory (providing ISO code or number). The information consists in the
314
-
territory number, followed by three possible mapcodes (Local, International and Shortest), followed by the territory full name.
321
+
Put information on a territory (providing ISO code or number). The information consists in the territory number, followed by three possible mapcodes (Local, International and Shortest), followed by the territory full name.
315
322
316
323
t_mapcode -t KIR
317
324
-> KIR => 58: KIR/KIR/KIR/Kiribati
318
325
319
326
t_mapcode -t CA
320
327
-> CA => 391: CA/US-CA/CA/California
321
-
-> Parent: USA
328
+
-> Parent: USA
322
329
323
330
t_mapcode -t 410
324
331
-> USA => 410: USA/USA/USA/USA
325
-
-> Has subdivisions
332
+
-> Has subdivisions
333
+
334
+
Search a territory by name.
335
+
336
+
t_mapcode -s alabama
337
+
-> 364 => 364: AL/US-AL/US-AL/Alabama
338
+
-> Parent: USA
339
+
340
+
List all subdivisions named "xx-AL".
326
341
342
+
t_mapcode -S AL
343
+
-> US-AL => 364: AL/US-AL/US-AL/Alabama
344
+
-> Parent: USA
345
+
-> BR-AL => 318: AL/BR-AL/BR-AL/Alagoas
346
+
-> Parent: BRA
347
+
-> RU-AL => 482: AL/RU-AL/RU-AL/Altai Republic
348
+
-> Parent: RUS
349
+
327
350
Encode a coordinate with a context and a precision, put information of the shortest mapcode.
328
351
Information is the mapcode, the territory context of the mapcode, the full mapcode (territory
329
352
and mapcode separated by a space and enclosed by quotes, except for international mapcodes) and territory number.
0 commit comments