forked from species/transfor-map
-
Notifications
You must be signed in to change notification settings - Fork 4
/
taxonomy.json.README
38 lines (34 loc) · 1.2 KB
/
taxonomy.json.README
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
file format of taxonomy.json:
it represents the Transformap Taxonomy as Tree of objects with the following properties:
base is a block of grouped taxonomy entries
"group name" : {
$properties
}
each group has the following properties:
"label" : {
//which has text strings for each language:
"en" : "English label text",
"de" : "German label Text"
},
// and a "description with the same schema:
"description" : {
"en" : "",
"de" : ""
},
// then, an array of entries follow:
items : [
{
// each item has the following properties:
"transformap:key" : "food+drink", // internal transformap primary key
"osm:key" : "osm-key",
"osm:values" : [ "array", "of", "possible", "osm-values" ],
"label" : { "same syntax" : "as above" },
"description" : { "same syntax" : "as above" },
"osm:objects" : [
// an array of possible key-value combinations, which items implies this TransforTax entry.
{ "amenity" : "pub" , "food" : "yes" } , // e.g. implies our "food+drink" - ALL tags must be fulfilled, AND-Conjunction!
{ "amenity" : "restaurant" }
]
},
{"transformap:key" : "water", ... }
]