split presets into individual files

This commit is contained in:
Ansis Brammanis
2013-03-07 15:01:34 -05:00
parent 27861ca6b2
commit 6e770dbb85
51 changed files with 1238 additions and 35 deletions
+11
View File
@@ -0,0 +1,11 @@
var fs = require('fs');
var wd = './';
var order = JSON.parse(fs.readFileSync(wd + 'presets/order.json', 'utf8'));
var presets = order.map(function(d) {
return JSON.parse(fs.readFileSync(wd + 'presets/' + d + '.json', 'utf8'));
});
fs.writeFileSync(wd + 'presets.json', JSON.stringify(presets, null, 4), 'utf8');
+35 -35
View File
@@ -442,23 +442,6 @@
"address"
]
},
{
"name": "bus stop",
"match": {
"type": [
"point"
],
"tags": {
"highway": "bus_stop"
},
"terms": []
},
"icon": "bus",
"form": [
"operator",
"shelter"
]
},
{
"name": "cinema",
"match": {
@@ -1039,24 +1022,6 @@
"surface"
]
},
{
"name": "basketball court",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "basketball"
},
"terms": []
},
"icon": "basketball",
"form": [
"surface"
]
},
{
"name": "baseball diamond",
"match": {
@@ -1111,6 +1076,24 @@
"surface"
]
},
{
"name": "basketball court",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "basketball"
},
"terms": []
},
"icon": "basketball",
"form": [
"surface"
]
},
{
"name": "building",
"match": {
@@ -1128,6 +1111,23 @@
"address"
]
},
{
"name": "bus stop",
"match": {
"type": [
"point"
],
"tags": {
"highway": "bus_stop"
},
"terms": []
},
"icon": "bus",
"form": [
"operator",
"shelter"
]
},
{
"name": "turning circle",
"match": {
+41
View File
@@ -0,0 +1,41 @@
{
"name": "bank",
"match": {
"type": [
"point",
"area"
],
"terms": [
"coffer",
"countinghouse",
"credit union",
"depository",
"exchequer",
"fund",
"hoard",
"investment firm",
"repository",
"reserve",
"reservoir",
"safe",
"savings",
"stock",
"stockpile",
"store",
"storehouse",
"thrift",
"treasury",
"trust company",
"vault"
],
"tags": {
"amenity": "bank"
}
},
"icon": "bank",
"form": [
"atm",
"building_area",
"address"
]
}
+18
View File
@@ -0,0 +1,18 @@
{
"name": "bar",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "bar"
},
"terms": []
},
"icon": "bar",
"form": [
"building_area",
"address"
]
}
+24
View File
@@ -0,0 +1,24 @@
{
"name": "cafe",
"match": {
"type": [
"point",
"area"
],
"terms": [
"coffee",
"tea",
"coffee shop"
],
"tags": {
"amenity": "cafe"
}
},
"icon": "cafe",
"form": [
"cuisine",
"internet_access",
"building_area",
"address"
]
}
+36
View File
@@ -0,0 +1,36 @@
{
"name": "cinema",
"match": {
"type": [
"point",
"area"
],
"terms": [
"big screen",
"bijou",
"cine",
"drive-in",
"film",
"flicks",
"motion pictures",
"movie house",
"movie theater",
"moving pictures",
"nabes",
"photoplay",
"picture show",
"pictures",
"playhouse",
"show",
"silver screen"
],
"tags": {
"amenity": "cinema"
}
},
"icon": "cinema",
"form": [
"building_area",
"address"
]
}
@@ -0,0 +1,19 @@
{
"name": "fast food",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "fast_food"
},
"terms": []
},
"icon": "fast-food",
"form": [
"cuisine",
"building_area",
"address"
]
}
@@ -0,0 +1,19 @@
{
"name": "fire station",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "fire_station"
},
"terms": []
},
"icon": "fire-station",
"form": [
"operator",
"building_area",
"address"
]
}
@@ -0,0 +1,33 @@
{
"name": "hospital",
"match": {
"type": [
"point",
"area"
],
"terms": [
"clinic",
"emergency room",
"health service",
"hospice",
"infirmary",
"institution",
"nursing home",
"rest home",
"sanatorium",
"sanitarium",
"sick bay",
"surgery",
"ward"
],
"tags": {
"amenity": "hospital"
}
},
"icon": "hospital",
"form": [
"emergency",
"building_area",
"address"
]
}
+19
View File
@@ -0,0 +1,19 @@
{
"name": "library",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "library"
},
"terms": []
},
"icon": "library",
"form": [
"operator",
"building_area",
"address"
]
}
+19
View File
@@ -0,0 +1,19 @@
{
"name": "parking",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "parking"
},
"terms": []
},
"icon": "parking",
"form": [
"fee",
"access",
"address"
]
}
@@ -0,0 +1,20 @@
{
"name": "pharmacy",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "pharmacy"
},
"terms": []
},
"icon": "pharmacy",
"form": [
"dispensing",
"operator",
"building_area",
"address"
]
}
@@ -0,0 +1,44 @@
{
"name": "place of worship",
"match": {
"type": [
"point",
"area"
],
"terms": [
"abbey",
"basilica",
"bethel",
"cathedral",
"chancel",
"chantry",
"chapel",
"church",
"fold",
"house of God",
"house of prayer",
"house of worship",
"minster",
"mission",
"mosque",
"oratory",
"parish",
"sacellum",
"sanctuary",
"shrine",
"synagogue",
"tabernacle",
"temple"
],
"tags": {
"amenity": "place_of_worship"
}
},
"icon": "place-of-worship",
"form": [
"religion",
"denomination",
"building_area",
"address"
]
}
+48
View File
@@ -0,0 +1,48 @@
{
"name": "police",
"match": {
"type": [
"point",
"area"
],
"terms": [
"badge",
"bear",
"blue",
"bluecoat",
"bobby",
"boy scout",
"bull",
"constable",
"constabulary",
"cop",
"copper",
"corps",
"county mounty",
"detective",
"fed",
"flatfoot",
"force",
"fuzz",
"gendarme",
"gumshoe",
"heat",
"law",
"law enforcement",
"man",
"narc",
"officers",
"patrolman",
"police"
],
"tags": {
"amenity": "police"
}
},
"icon": "police",
"form": [
"operator",
"building_area",
"address"
]
}
+18
View File
@@ -0,0 +1,18 @@
{
"name": "pub",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "pub"
},
"terms": []
},
"icon": "beer",
"form": [
"building_area",
"address"
]
}
@@ -0,0 +1,51 @@
{
"name": "restaurant",
"match": {
"type": [
"point",
"area"
],
"terms": [
"bar",
"cafeteria",
"café",
"canteen",
"chophouse",
"coffee shop",
"diner",
"dining room",
"dive*",
"doughtnut shop",
"drive-in",
"eatery",
"eating house",
"eating place",
"fast-food place",
"greasy spoon",
"grill",
"hamburger stand",
"hashery",
"hideaway",
"hotdog stand",
"inn",
"joint*",
"luncheonette",
"lunchroom",
"night club",
"outlet*",
"pizzeria",
"saloon",
"soda fountain",
"watering hole"
],
"tags": {
"amenity": "restaurant"
}
},
"icon": "restaurant",
"form": [
"cuisine",
"building_area",
"address"
]
}
+36
View File
@@ -0,0 +1,36 @@
{
"name": "school",
"match": {
"type": [
"point",
"area"
],
"terms": [
"academy",
"alma mater",
"blackboard",
"college",
"department",
"discipline",
"establishment",
"faculty",
"hall",
"halls of ivy",
"institute",
"institution",
"jail*",
"schoolhouse",
"seminary",
"university"
],
"tags": {
"amenity": "school"
}
},
"icon": "school",
"form": [
"operator",
"building",
"address"
]
}
@@ -0,0 +1,24 @@
{
"name": "town hall",
"match": {
"type": [
"point",
"areea"
],
"terms": [
"village hall",
"city government",
"courthouse",
"municipal building",
"municipal center"
],
"tags": {
"amenity": "townhall"
}
},
"icon": "town-hall",
"form": [
"building_area",
"address"
]
}
@@ -0,0 +1,18 @@
{
"name": "university",
"match": {
"type": [
"point",
"area"
],
"tags": {
"amenity": "university"
},
"terms": []
},
"icon": "college",
"form": [
"operator",
"address"
]
}
+17
View File
@@ -0,0 +1,17 @@
{
"name": "building",
"match": {
"type": [
"area"
],
"tags": {
"building": "*"
},
"terms": []
},
"icon": "warehouse",
"form": [
"building_yes",
"address"
]
}
@@ -0,0 +1,17 @@
{
"name": "bus stop",
"match": {
"type": [
"point"
],
"tags": {
"highway": "bus_stop"
},
"terms": []
},
"icon": "bus",
"form": [
"operator",
"shelter"
]
}
@@ -0,0 +1,20 @@
{
"name": "cycle path",
"match": {
"type": [
"line"
],
"tags": {
"highway": "cycleway"
},
"terms": []
},
"icon": "highway-cycleway",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
+38
View File
@@ -0,0 +1,38 @@
{
"name": "foot path",
"match": {
"type": [
"line"
],
"terms": [
"beaten path",
"boulevard",
"clearing",
"course",
"cut*",
"drag*",
"footpath",
"highway",
"lane",
"line",
"orbit",
"passage",
"pathway",
"rail",
"rails",
"road",
"roadway",
"route",
"street",
"thoroughfare",
"trackway",
"trail",
"trajectory",
"walk"
],
"tags": {
"highway": "footway"
}
},
"icon": "highway-footway"
}
@@ -0,0 +1,20 @@
{
"name": "motorway",
"match": {
"type": [
"line"
],
"tags": {
"highway": "motorway"
},
"terms": []
},
"icon": "highway-motorway",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
+20
View File
@@ -0,0 +1,20 @@
{
"name": "primary road",
"match": {
"type": [
"line"
],
"tags": {
"highway": "primary"
},
"terms": []
},
"icon": "highway-primary",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
@@ -0,0 +1,20 @@
{
"name": "residential road",
"match": {
"type": [
"line"
],
"tags": {
"highway": "residential"
},
"terms": []
},
"icon": "highway-residential",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
@@ -0,0 +1,20 @@
{
"name": "secondary road",
"match": {
"type": [
"line"
],
"tags": {
"highway": "secondary"
},
"terms": []
},
"icon": "highway-secondary",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
+20
View File
@@ -0,0 +1,20 @@
{
"name": "service road",
"match": {
"type": [
"line"
],
"tags": {
"highway": "service"
},
"terms": []
},
"icon": "highway-service",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
@@ -0,0 +1,20 @@
{
"name": "tertiary road",
"match": {
"type": [
"line"
],
"tags": {
"highway": "tertiary"
},
"terms": []
},
"icon": "highway-tertiary",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
+20
View File
@@ -0,0 +1,20 @@
{
"name": "track",
"match": {
"type": [
"line"
],
"tags": {
"highway": "track"
},
"terms": []
},
"icon": "highway-track",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
+20
View File
@@ -0,0 +1,20 @@
{
"name": "trunk highway",
"match": {
"type": [
"line"
],
"tags": {
"highway": "trunk"
},
"terms": []
},
"icon": "highway-trunk",
"form": [
"oneway",
"bridge",
"tunnel",
"access",
"maxspeed"
]
}
@@ -0,0 +1,13 @@
{
"name": "turning circle",
"match": {
"type": [
"vertex"
],
"tags": {
"highway": "turning_circle"
},
"terms": []
},
"icon": "circle"
}
@@ -0,0 +1,18 @@
{
"name": "golf course",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "golf_course"
},
"terms": []
},
"icon": "golf",
"form": [
"operator",
"address"
]
}
+35
View File
@@ -0,0 +1,35 @@
{
"name": "park",
"match": {
"type": [
"point",
"area"
],
"terms": [
"esplanade",
"estate",
"forest",
"garden",
"grass",
"green",
"grounds",
"lawn",
"lot",
"meadow",
"parkland",
"place",
"playground",
"plaza",
"pleasure garden",
"recreation area",
"square",
"tract",
"village green",
"woodland"
],
"tags": {
"leisure": "park"
}
},
"icon": "park"
}
+17
View File
@@ -0,0 +1,17 @@
{
"name": "sport pitch",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch"
},
"terms": []
},
"icon": "pitch",
"form": [
"surface"
]
}
@@ -0,0 +1,18 @@
{
"name": "baseball diamond",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "baseball"
},
"terms": []
},
"icon": "baseball",
"form": [
"surface"
]
}
@@ -0,0 +1,18 @@
{
"name": "basketball court",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "basketball"
},
"terms": []
},
"icon": "basketball",
"form": [
"surface"
]
}
@@ -0,0 +1,18 @@
{
"name": "soccer field",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "soccer"
},
"terms": []
},
"icon": "soccer",
"form": [
"surface"
]
}
@@ -0,0 +1,18 @@
{
"name": "tennis court",
"match": {
"type": [
"point",
"area"
],
"tags": {
"leisure": "pitch",
"sport": "tennis"
},
"terms": []
},
"icon": "tennis",
"form": [
"surface"
]
}
@@ -0,0 +1,15 @@
{
"name": "coastline",
"match": {
"type": [
"line"
],
"terms": [
"shore"
],
"tags": {
"natural": "coastline"
}
},
"icon": ""
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "water",
"match": {
"type": [
"point",
"area"
],
"tags": {
"natural": "water"
},
"terms": []
},
"icon": ""
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "wetland",
"match": {
"type": [
"point",
"area"
],
"tags": {
"natural": "wetland"
},
"terms": []
},
"icon": ""
}
+14
View File
@@ -0,0 +1,14 @@
{
"name": "wood",
"match": {
"type": [
"point",
"area"
],
"tags": {
"natural": "wood"
},
"terms": []
},
"icon": "park2"
}
+50
View File
@@ -0,0 +1,50 @@
[
"amenity/cafe",
"leisure/park",
"natural/water",
"natural/wetland",
"natural/wood",
"natural/coastline",
"place/island",
"shop/supermarket",
"amenity/restaurant",
"amenity/place_of_worship",
"amenity/school",
"amenity/university",
"amenity/parking",
"amenity/bank",
"amenity/fast_food",
"amenity/bar",
"amenity/pub",
"amenity/cinema",
"amenity/hospital",
"amenity/pharmacy",
"amenity/fire_station",
"amenity/police",
"amenity/library",
"tourism/museum",
"amenity/townhall",
"leisure/golf_course",
"waterway/river",
"waterway/stream",
"highway/motorway",
"highway/residential",
"highway/primary",
"highway/secondary",
"highway/tertiary",
"highway/service",
"highway/track",
"railway/rail",
"railway/subway",
"highway/trunk",
"highway/footway",
"highway/cycleway",
"leisure/pitch",
"leisure/pitch_baseball",
"leisure/pitch_soccer",
"leisure/pitch_tennis",
"leisure/pitch_basketball",
"building/*",
"highway/bus_stop",
"highway/turning_circle"
]
+23
View File
@@ -0,0 +1,23 @@
{
"name": "island",
"match": {
"type": [
"point",
"area"
],
"terms": [
"archipelago",
"atoll",
"bar",
"cay",
"isle",
"islet",
"key",
"reef"
],
"tags": {
"place": "island"
}
},
"icon": ""
}
+13
View File
@@ -0,0 +1,13 @@
{
"name": "rail",
"match": {
"type": [
"line"
],
"tags": {
"railway": "rail"
},
"terms": []
},
"icon": "railway-rail"
}
+13
View File
@@ -0,0 +1,13 @@
{
"name": "subway",
"match": {
"type": [
"line"
],
"tags": {
"railway": "subway"
},
"terms": []
},
"icon": "railway-rail"
}
@@ -0,0 +1,40 @@
{
"name": "supermarket",
"match": {
"type": [
"point",
"area"
],
"terms": [
"bazaar",
"boutique",
"chain",
"co-op",
"cut-rate store",
"discount store",
"five-and-dime",
"flea market",
"galleria",
"mall",
"mart",
"outlet",
"outlet store",
"shop",
"shopping center",
"shopping plaza",
"stand",
"store",
"supermarket",
"thrift shop"
],
"tags": {
"shop": "supermarket"
}
},
"icon": "grocery",
"form": [
"operator",
"building_area",
"address"
]
}
+33
View File
@@ -0,0 +1,33 @@
{
"name": "museum",
"match": {
"type": [
"point",
"area"
],
"terms": [
"exhibition",
"exhibits archive",
"foundation",
"gallery",
"hall",
"institution",
"library",
"menagerie",
"repository",
"salon",
"storehouse",
"treasury",
"vault"
],
"tags": {
"tourism": "museum"
}
},
"icon": "museum",
"form": [
"operator",
"building_area",
"address"
]
}
+27
View File
@@ -0,0 +1,27 @@
{
"name": "river",
"match": {
"type": [
"line"
],
"terms": [
"beck",
"branch",
"brook",
"course",
"creek",
"estuary",
"rill",
"rivulet",
"run",
"runnel",
"stream",
"tributary",
"watercourse"
],
"tags": {
"waterway": "river"
}
},
"icon": "waterway-river"
}
+42
View File
@@ -0,0 +1,42 @@
{
"name": "stream",
"match": {
"type": [
"line"
],
"terms": [
"beck",
"branch",
"brook",
"burn",
"course",
"creek",
"current",
"drift",
"flood",
"flow",
"freshet",
"race",
"rill",
"rindle",
"rivulet",
"run",
"runnel",
"rush",
"spate",
"spritz",
"surge",
"tide",
"torrent",
"tributary",
"watercourse"
],
"tags": {
"waterway": "stream"
}
},
"icon": "waterway-river",
"form": [
"layer"
]
}