mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-17 22:24:49 +02:00
Generate preset translations from .json files
This makes the .json files the one-stop-shop for adding/modifying presets. You don't have to remember to also update presets.yaml.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
var fs = require('fs'),
|
||||
path = require('path'),
|
||||
glob = require('glob');
|
||||
glob = require('glob'),
|
||||
YAML = require('js-yaml');
|
||||
|
||||
function read(f) {
|
||||
return JSON.parse(fs.readFileSync(f));
|
||||
@@ -14,18 +15,36 @@ function rp(f) {
|
||||
return r('presets/' + f);
|
||||
}
|
||||
|
||||
var translations = {
|
||||
fields: {},
|
||||
presets: {}
|
||||
};
|
||||
|
||||
var fields = {};
|
||||
glob.sync(__dirname + '/data/presets/fields/*.json').forEach(function(file) {
|
||||
fields[path.basename(file, '.json')] = read(file);
|
||||
var field = read(file),
|
||||
id = path.basename(file, '.json');
|
||||
translations.fields[id] = {label: field.label};
|
||||
if (field.strings) {
|
||||
for (var i in field.strings) {
|
||||
translations.fields[id][i] = field.strings[i];
|
||||
}
|
||||
}
|
||||
fields[id] = field;
|
||||
});
|
||||
fs.writeFileSync('data/presets/fields.json', JSON.stringify(fields, null, 4));
|
||||
|
||||
var presets = {};
|
||||
glob.sync(__dirname + '/data/presets/presets/**/*.json').forEach(function(file) {
|
||||
presets[file.match(/presets\/presets\/([^.]*)\.json/)[1]] = read(file);
|
||||
var preset = read(file),
|
||||
id = file.match(/presets\/presets\/([^.]*)\.json/)[1];
|
||||
translations.presets[id] = {name: preset.name};
|
||||
presets[id] = preset;
|
||||
});
|
||||
fs.writeFileSync('data/presets/presets.json', JSON.stringify(presets, null, 4));
|
||||
|
||||
fs.writeFileSync('data/presets.yaml', YAML.dump({en: {presets: translations}}));
|
||||
|
||||
fs.writeFileSync('data/data.js', 'iD.data = ' + JSON.stringify({
|
||||
deprecated: r('deprecated.json'),
|
||||
discarded: r('discarded.json'),
|
||||
|
||||
+46
-34
@@ -30,6 +30,8 @@ en:
|
||||
label: Collection Times
|
||||
construction:
|
||||
label: Type
|
||||
country:
|
||||
label: Country
|
||||
crossing:
|
||||
label: Type
|
||||
cuisine:
|
||||
@@ -92,7 +94,7 @@ en:
|
||||
label: Type
|
||||
railway:
|
||||
label: Type
|
||||
ref:
|
||||
ref:
|
||||
label: Reference
|
||||
religion:
|
||||
label: Religion
|
||||
@@ -104,13 +106,6 @@ en:
|
||||
hindu: Hindu
|
||||
shinto: Shinto
|
||||
taoist: Taoist
|
||||
roadtype:
|
||||
label: Features
|
||||
options:
|
||||
bridge: Bridge
|
||||
tunnel: Tunnel
|
||||
embankment: Embankment
|
||||
cutting: Cutting
|
||||
service:
|
||||
label: Type
|
||||
shelter:
|
||||
@@ -121,6 +116,13 @@ en:
|
||||
label: Source
|
||||
sport:
|
||||
label: Sport
|
||||
structure:
|
||||
label: Structure
|
||||
options:
|
||||
bridge: Bridge
|
||||
tunnel: Tunnel
|
||||
embankment: Embankment
|
||||
cutting: Cutting
|
||||
surface:
|
||||
label: Surface
|
||||
tourism:
|
||||
@@ -133,6 +135,8 @@ en:
|
||||
label: Website
|
||||
wetland:
|
||||
label: Type
|
||||
wheelchair:
|
||||
label: Wheelchair Access
|
||||
wikipedia:
|
||||
label: Wikipedia
|
||||
wood:
|
||||
@@ -150,7 +154,7 @@ en:
|
||||
name: Bank
|
||||
amenity/bar:
|
||||
name: Bar
|
||||
amenity/bench:
|
||||
amenity/bench:
|
||||
name: Bench
|
||||
amenity/bicycle_parking:
|
||||
name: Bicycle Parking
|
||||
@@ -160,13 +164,17 @@ en:
|
||||
name: Cafe
|
||||
amenity/cinema:
|
||||
name: Cinema
|
||||
amenity/courthouse:
|
||||
name: Courthouse
|
||||
amenity/embassy:
|
||||
name: Embassy
|
||||
amenity/fast_food:
|
||||
name: Fast Food
|
||||
amenity/fire_station:
|
||||
name: Fire Station
|
||||
amenity/fuel:
|
||||
amenity/fuel:
|
||||
name: Gas Station
|
||||
amenity/grave_yard:
|
||||
amenity/grave_yard:
|
||||
name: Graveyard
|
||||
amenity/hospital:
|
||||
name: Hospital
|
||||
@@ -196,11 +204,13 @@ en:
|
||||
name: Restaurant
|
||||
amenity/school:
|
||||
name: School
|
||||
amenity/swimming_pool:
|
||||
amenity/swimming_pool:
|
||||
name: Swimming Pool
|
||||
amenity/telephone:
|
||||
amenity/telephone:
|
||||
name: Telephone
|
||||
amenity/toilets:
|
||||
amenity/theatre:
|
||||
name: Theater
|
||||
amenity/toilets:
|
||||
name: Toilets
|
||||
amenity/townhall:
|
||||
name: Town Hall
|
||||
@@ -284,7 +294,7 @@ en:
|
||||
name: Vineyard
|
||||
leisure:
|
||||
name: Leisure
|
||||
leisure/garden:
|
||||
leisure/garden:
|
||||
name: Garden
|
||||
leisure/golf_course:
|
||||
name: Golf Course
|
||||
@@ -304,15 +314,17 @@ en:
|
||||
name: Tennis Court
|
||||
leisure/playground:
|
||||
name: Playground
|
||||
leisure/swimming_pool:
|
||||
leisure/stadium:
|
||||
name: Stadium
|
||||
leisure/swimming_pool:
|
||||
name: Swimming Pool
|
||||
man_made:
|
||||
man_made:
|
||||
name: Man Made
|
||||
man_made/lighthouse:
|
||||
name: Lighthouse
|
||||
man_made/pier:
|
||||
name: Pier
|
||||
man_made/survey_point:
|
||||
man_made/survey_point:
|
||||
name: Survey Point
|
||||
man_made/water_tower:
|
||||
name: Water Tower
|
||||
@@ -384,39 +396,39 @@ en:
|
||||
name: Supermarket
|
||||
tourism:
|
||||
name: Tourism
|
||||
tourism/alpine_hut:
|
||||
tourism/alpine_hut:
|
||||
name: Alpine Hut
|
||||
tourism/artwork:
|
||||
tourism/artwork:
|
||||
name: Artwork
|
||||
tourism/attraction:
|
||||
tourism/attraction:
|
||||
name: Tourist Attraction
|
||||
tourism/camp_site:
|
||||
tourism/camp_site:
|
||||
name: Camp Site
|
||||
tourism/caravan_site:
|
||||
tourism/caravan_site:
|
||||
name: RV Park
|
||||
tourism/chalet:
|
||||
tourism/chalet:
|
||||
name: Chalet
|
||||
tourism/guest_house:
|
||||
tourism/guest_house:
|
||||
name: Guest House
|
||||
tourism/hostel:
|
||||
tourism/hostel:
|
||||
name: Hostel
|
||||
tourism/hotel:
|
||||
tourism/hotel:
|
||||
name: Hotel
|
||||
tourism/information:
|
||||
tourism/information:
|
||||
name: Information
|
||||
tourism/motel:
|
||||
tourism/motel:
|
||||
name: Motel
|
||||
tourism/museum:
|
||||
tourism/museum:
|
||||
name: Museum
|
||||
tourism/picnic_site:
|
||||
name: Picnic Site
|
||||
tourism/theme_park:
|
||||
tourism/theme_park:
|
||||
name: Theme Park
|
||||
tourism/viewpoint:
|
||||
tourism/viewpoint:
|
||||
name: Viewpoint
|
||||
tourism/zoo:
|
||||
tourism/zoo:
|
||||
name: Zoo
|
||||
waterway:
|
||||
waterway:
|
||||
name: Waterway
|
||||
waterway/canal:
|
||||
name: Canal
|
||||
|
||||
+152
-58
@@ -1,7 +1,8 @@
|
||||
{
|
||||
"access": {
|
||||
"key": "access",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Access"
|
||||
},
|
||||
"address": {
|
||||
"type": "address",
|
||||
@@ -12,101 +13,132 @@
|
||||
"addr:city"
|
||||
],
|
||||
"icon": "address",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Address",
|
||||
"strings": {
|
||||
"placeholders": {
|
||||
"housename": "Housename",
|
||||
"number": "123",
|
||||
"street": "Street",
|
||||
"city": "City"
|
||||
}
|
||||
}
|
||||
},
|
||||
"aeroway": {
|
||||
"key": "aeroway",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"amenity": {
|
||||
"key": "amenity",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"atm": {
|
||||
"key": "atm",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "ATM"
|
||||
},
|
||||
"bicycle_parking": {
|
||||
"key": "bicycle_parking",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"building": {
|
||||
"key": "building",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Building"
|
||||
},
|
||||
"building_area": {
|
||||
"key": "building",
|
||||
"type": "check",
|
||||
"default": "yes",
|
||||
"geometry": "area"
|
||||
"geometry": "area",
|
||||
"label": "Building"
|
||||
},
|
||||
"building_yes": {
|
||||
"key": "building",
|
||||
"type": "combo",
|
||||
"default": "yes"
|
||||
"default": "yes",
|
||||
"label": "Building"
|
||||
},
|
||||
"capacity": {
|
||||
"key": "capacity",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Capacity"
|
||||
},
|
||||
"collection_times": {
|
||||
"key": "collection_times",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Collection Times"
|
||||
},
|
||||
"construction": {
|
||||
"key": "construction",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"country": {
|
||||
"key": "country",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Country"
|
||||
},
|
||||
"crossing": {
|
||||
"key": "crossing",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"cuisine": {
|
||||
"key": "cuisine",
|
||||
"type": "combo",
|
||||
"indexed": true
|
||||
"indexed": true,
|
||||
"label": "Cuisine"
|
||||
},
|
||||
"denomination": {
|
||||
"key": "denomination",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Denomination"
|
||||
},
|
||||
"denotation": {
|
||||
"key": "denotation",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Denotation"
|
||||
},
|
||||
"elevation": {
|
||||
"key": "ele",
|
||||
"type": "number",
|
||||
"icon": "elevation",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Elevation"
|
||||
},
|
||||
"emergency": {
|
||||
"key": "emergency",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Emergency"
|
||||
},
|
||||
"entrance": {
|
||||
"key": "entrance",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"fax": {
|
||||
"key": "fax",
|
||||
"type": "tel"
|
||||
"type": "tel",
|
||||
"label": "Fax"
|
||||
},
|
||||
"fee": {
|
||||
"key": "fee",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Fee"
|
||||
},
|
||||
"highway": {
|
||||
"key": "highway",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"historic": {
|
||||
"key": "historic",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"internet_access": {
|
||||
"key": "internet_access",
|
||||
@@ -117,79 +149,106 @@
|
||||
"wlan",
|
||||
"wired",
|
||||
"terminal"
|
||||
]
|
||||
],
|
||||
"label": "Internet Access",
|
||||
"strings": {
|
||||
"options": {
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"wlan": "Wifi",
|
||||
"wired": "Wired",
|
||||
"terminal": "Terminal"
|
||||
}
|
||||
}
|
||||
},
|
||||
"landuse": {
|
||||
"key": "landuse",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"layer": {
|
||||
"key": "layer",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Layer"
|
||||
},
|
||||
"leisure": {
|
||||
"key": "leisure",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"levels": {
|
||||
"key": "building:levels",
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"label": "Levels"
|
||||
},
|
||||
"man_made": {
|
||||
"key": "man_made",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"maxspeed": {
|
||||
"key": "maxspeed",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Speed Limit"
|
||||
},
|
||||
"natural": {
|
||||
"key": "natural",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Natural"
|
||||
},
|
||||
"network": {
|
||||
"key": "network",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Network"
|
||||
},
|
||||
"note": {
|
||||
"key": "note",
|
||||
"type": "textarea",
|
||||
"universal": true,
|
||||
"icon": "note"
|
||||
"icon": "note",
|
||||
"label": "Note"
|
||||
},
|
||||
"office": {
|
||||
"key": "office",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"oneway": {
|
||||
"key": "oneway",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "One Way"
|
||||
},
|
||||
"opening_hours": {
|
||||
"key": "opening_hours",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Hours"
|
||||
},
|
||||
"operator": {
|
||||
"key": "operator",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Operator"
|
||||
},
|
||||
"phone": {
|
||||
"key": "phone",
|
||||
"type": "tel",
|
||||
"icon": "telephone",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Phone"
|
||||
},
|
||||
"place": {
|
||||
"key": "place",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"railway": {
|
||||
"key": "railway",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"ref": {
|
||||
"key": "ref",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Reference"
|
||||
},
|
||||
"religion": {
|
||||
"key": "religion",
|
||||
@@ -202,7 +261,19 @@
|
||||
"hindu",
|
||||
"shinto",
|
||||
"taoist"
|
||||
]
|
||||
],
|
||||
"label": "Religion",
|
||||
"strings": {
|
||||
"options": {
|
||||
"christian": "Christian",
|
||||
"muslim": "Muslim",
|
||||
"buddhist": "Buddhist",
|
||||
"jewish": "Jewish",
|
||||
"hindu": "Hindu",
|
||||
"shinto": "Shinto",
|
||||
"taoist": "Taoist"
|
||||
}
|
||||
}
|
||||
},
|
||||
"service": {
|
||||
"key": "service",
|
||||
@@ -213,25 +284,30 @@
|
||||
"alley",
|
||||
"drive-through",
|
||||
"emergency_access"
|
||||
]
|
||||
],
|
||||
"label": "Type"
|
||||
},
|
||||
"shelter": {
|
||||
"key": "shelter",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Shelter"
|
||||
},
|
||||
"shop": {
|
||||
"key": "shop",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"source": {
|
||||
"key": "source",
|
||||
"type": "text",
|
||||
"icon": "source",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Source"
|
||||
},
|
||||
"sport": {
|
||||
"key": "sport",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Sport"
|
||||
},
|
||||
"structure": {
|
||||
"type": "radio",
|
||||
@@ -240,33 +316,48 @@
|
||||
"tunnel",
|
||||
"embankment",
|
||||
"cutting"
|
||||
]
|
||||
],
|
||||
"label": "Structure",
|
||||
"strings": {
|
||||
"options": {
|
||||
"bridge": "Bridge",
|
||||
"tunnel": "Tunnel",
|
||||
"embankment": "Embankment",
|
||||
"cutting": "Cutting"
|
||||
}
|
||||
}
|
||||
},
|
||||
"surface": {
|
||||
"key": "surface",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Surface"
|
||||
},
|
||||
"tourism": {
|
||||
"key": "tourism",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"water": {
|
||||
"key": "water",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"waterway": {
|
||||
"key": "waterway",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"website": {
|
||||
"key": "website",
|
||||
"type": "url",
|
||||
"icon": "website",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Website"
|
||||
},
|
||||
"wetland": {
|
||||
"key": "wetland",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
},
|
||||
"wheelchair": {
|
||||
"key": "wheelchair",
|
||||
@@ -277,16 +368,19 @@
|
||||
"no"
|
||||
],
|
||||
"icon": "wheelchair",
|
||||
"universal": "true"
|
||||
"universal": "true",
|
||||
"label": "Wheelchair Access"
|
||||
},
|
||||
"wikipedia": {
|
||||
"key": "wikipedia",
|
||||
"type": "text",
|
||||
"icon": "wikipedia",
|
||||
"universal": true
|
||||
"universal": true,
|
||||
"label": "Wikipedia"
|
||||
},
|
||||
"wood": {
|
||||
"key": "wood",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "access",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Access"
|
||||
}
|
||||
@@ -7,5 +7,14 @@
|
||||
"addr:city"
|
||||
],
|
||||
"icon": "address",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Address",
|
||||
"strings": {
|
||||
"placeholders": {
|
||||
"housename": "Housename",
|
||||
"number": "123",
|
||||
"street": "Street",
|
||||
"city": "City"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "aeroway",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "amenity",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "atm",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "ATM"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "bicycle_parking",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "building",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Building"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "building",
|
||||
"type": "check",
|
||||
"default": "yes",
|
||||
"geometry": "area"
|
||||
}
|
||||
"geometry": "area",
|
||||
"label": "Building"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"key": "building",
|
||||
"type": "combo",
|
||||
"default": "yes"
|
||||
}
|
||||
"default": "yes",
|
||||
"label": "Building"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "capacity",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Capacity"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "collection_times",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Collection Times"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "construction",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "country",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Country"
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "crossing",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
{
|
||||
"key": "cuisine",
|
||||
"type": "combo",
|
||||
"indexed": true
|
||||
"indexed": true,
|
||||
"label": "Cuisine"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "denomination",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Denomination"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "denotation",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Denotation"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "ele",
|
||||
"type": "number",
|
||||
"icon": "elevation",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Elevation"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "emergency",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Emergency"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "entrance",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "fax",
|
||||
"type": "tel"
|
||||
"type": "tel",
|
||||
"label": "Fax"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "fee",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Fee"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "highway",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "historic",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -7,5 +7,15 @@
|
||||
"wlan",
|
||||
"wired",
|
||||
"terminal"
|
||||
]
|
||||
],
|
||||
"label": "Internet Access",
|
||||
"strings": {
|
||||
"options": {
|
||||
"yes": "Yes",
|
||||
"no": "No",
|
||||
"wlan": "Wifi",
|
||||
"wired": "Wired",
|
||||
"terminal": "Terminal"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "landuse",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "layer",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Layer"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "leisure",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "building:levels",
|
||||
"type": "number"
|
||||
"type": "number",
|
||||
"label": "Levels"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "man_made",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "maxspeed",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Speed Limit"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "natural",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Natural"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "network",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Network"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "note",
|
||||
"type": "textarea",
|
||||
"universal": true,
|
||||
"icon": "note"
|
||||
}
|
||||
"icon": "note",
|
||||
"label": "Note"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "office",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "oneway",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "One Way"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "opening_hours",
|
||||
"type": "text"
|
||||
}
|
||||
"type": "text",
|
||||
"label": "Hours"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "operator",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Operator"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "phone",
|
||||
"type": "tel",
|
||||
"icon": "telephone",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Phone"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "place",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "railway",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "ref",
|
||||
"type": "text"
|
||||
"type": "text",
|
||||
"label": "Reference"
|
||||
}
|
||||
@@ -9,5 +9,17 @@
|
||||
"hindu",
|
||||
"shinto",
|
||||
"taoist"
|
||||
]
|
||||
],
|
||||
"label": "Religion",
|
||||
"strings": {
|
||||
"options": {
|
||||
"christian": "Christian",
|
||||
"muslim": "Muslim",
|
||||
"buddhist": "Buddhist",
|
||||
"jewish": "Jewish",
|
||||
"hindu": "Hindu",
|
||||
"shinto": "Shinto",
|
||||
"taoist": "Taoist"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,12 @@
|
||||
{
|
||||
"key": "service",
|
||||
"type": "combo",
|
||||
"options": ["parking_aisle", "driveway", "alley", "drive-through", "emergency_access"]
|
||||
}
|
||||
"options": [
|
||||
"parking_aisle",
|
||||
"driveway",
|
||||
"alley",
|
||||
"drive-through",
|
||||
"emergency_access"
|
||||
],
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "shelter",
|
||||
"type": "check"
|
||||
"type": "check",
|
||||
"label": "Shelter"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "shop",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "source",
|
||||
"type": "text",
|
||||
"icon": "source",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Source"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "sport",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Sport"
|
||||
}
|
||||
@@ -5,5 +5,14 @@
|
||||
"tunnel",
|
||||
"embankment",
|
||||
"cutting"
|
||||
]
|
||||
],
|
||||
"label": "Structure",
|
||||
"strings": {
|
||||
"options": {
|
||||
"bridge": "Bridge",
|
||||
"tunnel": "Tunnel",
|
||||
"embankment": "Embankment",
|
||||
"cutting": "Cutting"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "surface",
|
||||
"type": "combo"
|
||||
"type": "combo",
|
||||
"label": "Surface"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "tourism",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "water",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "waterway",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "website",
|
||||
"type": "url",
|
||||
"icon": "website",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Website"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "wetland",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
@@ -7,5 +7,6 @@
|
||||
"no"
|
||||
],
|
||||
"icon": "wheelchair",
|
||||
"universal": "true"
|
||||
"universal": "true",
|
||||
"label": "Wheelchair Access"
|
||||
}
|
||||
|
||||
@@ -2,5 +2,6 @@
|
||||
"key": "wikipedia",
|
||||
"type": "text",
|
||||
"icon": "wikipedia",
|
||||
"universal": true
|
||||
}
|
||||
"universal": true,
|
||||
"label": "Wikipedia"
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
{
|
||||
"key": "wood",
|
||||
"type": "combo"
|
||||
}
|
||||
"type": "combo",
|
||||
"label": "Type"
|
||||
}
|
||||
+305
-152
File diff suppressed because it is too large
Load Diff
@@ -10,5 +10,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"aeroway": "*"
|
||||
}
|
||||
},
|
||||
"name": "Aeroway"
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"aeroway": "aerodrome"
|
||||
}
|
||||
},
|
||||
"name": "Airport"
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"aeroway": "helipad"
|
||||
}
|
||||
},
|
||||
"name": "Helipad"
|
||||
}
|
||||
@@ -9,5 +9,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "*"
|
||||
}
|
||||
},
|
||||
"name": "Amenity"
|
||||
}
|
||||
@@ -35,5 +35,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "bank"
|
||||
}
|
||||
},
|
||||
"name": "Bank"
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
"tags": {
|
||||
"amenity": "bar"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Bar"
|
||||
}
|
||||
@@ -6,5 +6,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "bench"
|
||||
}
|
||||
},
|
||||
"name": "Bench"
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "bicycle_parking"
|
||||
}
|
||||
},
|
||||
"name": "Bicycle Parking"
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "bicycle_rental"
|
||||
}
|
||||
},
|
||||
"name": "Bicycle Rental"
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "cafe"
|
||||
}
|
||||
},
|
||||
"name": "Cafe"
|
||||
}
|
||||
@@ -30,5 +30,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "cinema"
|
||||
}
|
||||
},
|
||||
"name": "Cinema"
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "courthouse"
|
||||
}
|
||||
},
|
||||
"name": "Courthouse"
|
||||
}
|
||||
|
||||
@@ -9,5 +9,6 @@
|
||||
"fields": [
|
||||
"country"
|
||||
],
|
||||
"icon": "embassy"
|
||||
"icon": "embassy",
|
||||
"name": "Embassy"
|
||||
}
|
||||
|
||||
@@ -13,5 +13,6 @@
|
||||
"tags": {
|
||||
"amenity": "fast_food"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Fast Food"
|
||||
}
|
||||
@@ -13,5 +13,6 @@
|
||||
"tags": {
|
||||
"amenity": "fire_station"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Fire Station"
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "fuel"
|
||||
}
|
||||
}
|
||||
},
|
||||
"name": "Gas Station"
|
||||
}
|
||||
@@ -10,5 +10,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "grave_yard"
|
||||
}
|
||||
},
|
||||
"name": "Graveyard"
|
||||
}
|
||||
@@ -27,5 +27,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "hospital"
|
||||
}
|
||||
},
|
||||
"name": "Hospital"
|
||||
}
|
||||
@@ -13,5 +13,6 @@
|
||||
"tags": {
|
||||
"amenity": "library"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Library"
|
||||
}
|
||||
@@ -13,5 +13,6 @@
|
||||
"tags": {
|
||||
"amenity": "parking"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Parking"
|
||||
}
|
||||
@@ -13,5 +13,6 @@
|
||||
"tags": {
|
||||
"amenity": "pharmacy"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Pharmacy"
|
||||
}
|
||||
@@ -38,5 +38,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "place_of_worship"
|
||||
}
|
||||
},
|
||||
"name": "Place of Worship"
|
||||
}
|
||||
@@ -37,5 +37,6 @@
|
||||
"tags": {
|
||||
"amenity": "place_of_worship",
|
||||
"religion": "christian"
|
||||
}
|
||||
},
|
||||
"name": "Church"
|
||||
}
|
||||
@@ -17,5 +17,6 @@
|
||||
"tags": {
|
||||
"amenity": "place_of_worship",
|
||||
"religion": "jewish"
|
||||
}
|
||||
},
|
||||
"name": "Synagogue"
|
||||
}
|
||||
@@ -17,5 +17,6 @@
|
||||
"tags": {
|
||||
"amenity": "place_of_worship",
|
||||
"religion": "muslim"
|
||||
}
|
||||
},
|
||||
"name": "Mosque"
|
||||
}
|
||||
@@ -42,5 +42,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "police"
|
||||
}
|
||||
},
|
||||
"name": "Police"
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
"mailbox",
|
||||
"pillar box",
|
||||
"postbox"
|
||||
]
|
||||
],
|
||||
"name": "Mailbox"
|
||||
}
|
||||
@@ -11,5 +11,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "post_office"
|
||||
}
|
||||
},
|
||||
"name": "Post Office"
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
"tags": {
|
||||
"amenity": "pub"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Pub"
|
||||
}
|
||||
@@ -45,5 +45,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "restaurant"
|
||||
}
|
||||
},
|
||||
"name": "Restaurant"
|
||||
}
|
||||
@@ -30,5 +30,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "school"
|
||||
}
|
||||
},
|
||||
"name": "School"
|
||||
}
|
||||
@@ -8,5 +8,6 @@
|
||||
"amenity": "swimming_pool"
|
||||
},
|
||||
"icon": "swimming",
|
||||
"searchable": false
|
||||
"searchable": false,
|
||||
"name": "Swimming Pool"
|
||||
}
|
||||
@@ -5,5 +5,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "telephone"
|
||||
}
|
||||
},
|
||||
"name": "Telephone"
|
||||
}
|
||||
@@ -11,11 +11,13 @@
|
||||
"area"
|
||||
],
|
||||
"terms": [
|
||||
"theatre",
|
||||
"performance",
|
||||
"play",
|
||||
"musical"
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "theatre"
|
||||
}
|
||||
},
|
||||
"name": "Theater"
|
||||
}
|
||||
|
||||
@@ -11,5 +11,6 @@
|
||||
"terms": [],
|
||||
"tags": {
|
||||
"amenity": "toilets"
|
||||
}
|
||||
},
|
||||
"name": "Toilets"
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
],
|
||||
"tags": {
|
||||
"amenity": "townhall"
|
||||
}
|
||||
},
|
||||
"name": "Town Hall"
|
||||
}
|
||||
@@ -12,5 +12,6 @@
|
||||
"tags": {
|
||||
"amenity": "university"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "University"
|
||||
}
|
||||
@@ -18,5 +18,6 @@
|
||||
"tags": {
|
||||
"building": "*"
|
||||
},
|
||||
"terms": []
|
||||
"terms": [],
|
||||
"name": "Building"
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user