From 1d2861c7879732bbb276402924b1d06f1e83fdf4 Mon Sep 17 00:00:00 2001 From: Bryan Housel Date: Mon, 17 Jun 2019 11:35:51 -0400 Subject: [PATCH] Handle iD-NSI tag mismatches --- build_data.js | 9 +++++++++ data/presets/presets.json | 2 ++ 2 files changed, 11 insertions(+) diff --git a/build_data.js b/build_data.js index 163df3402..98f5ad6c5 100644 --- a/build_data.js +++ b/build_data.js @@ -239,6 +239,15 @@ function suggestionsToPresets(presets) { preset = presets[presetID]; } + // A few exceptions where the NSI tagging doesn't exactly match iD tagging.. + if (kv === 'healthcare/clinic') { + presetID = 'amenity/clinic'; + preset = presets[presetID]; + } else if (kv === 'leisure/tanning_salon') { + presetID = 'shop/beauty/tanning'; + preset = presets[presetID]; + } + // fallback to key/value if (!preset) { presetID = kv; diff --git a/data/presets/presets.json b/data/presets/presets.json index 1c48a3914..b1bd57561 100644 --- a/data/presets/presets.json +++ b/data/presets/presets.json @@ -2874,6 +2874,7 @@ "amenity/veterinary/VCA Animal Hospital": {"name": "VCA Animal Hospital", "icon": "temaki-veterinary_care", "imageURL": "https://graph.facebook.com/VCAAnimalHospitals/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q7906620", "amenity": "veterinary"}, "addTags": {"amenity": "veterinary", "brand": "VCA Animal Hospital", "brand:wikidata": "Q7906620", "brand:wikipedia": "en:VCA Animal Hospitals", "name": "VCA Animal Hospital"}, "countryCodes": ["ca", "us"], "terms": [], "matchScore": 2, "suggestion": true}, "craft/signmaker/Fastsigns": {"name": "Fastsigns", "icon": "temaki-tools", "imageURL": "https://graph.facebook.com/FASTSIGNS/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q5437127", "craft": "signmaker"}, "addTags": {"brand": "Fastsigns", "brand:wikidata": "Q5437127", "brand:wikipedia": "en:Fastsigns", "craft": "signmaker", "name": "Fastsigns"}, "countryCodes": ["ae", "ca", "cl", "gb", "ky", "mx", "sa", "us"], "terms": [], "matchScore": 2, "suggestion": true}, "healthcare/blood_donation/Australian Red Cross Blood Service": {"name": "Australian Red Cross Blood Service", "icon": "maki-blood-bank", "imageURL": "https://graph.facebook.com/AustralianRedCross/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q4824610", "healthcare": "blood_donation"}, "addTags": {"brand": "Australian Red Cross", "brand:wikidata": "Q4824610", "brand:wikipedia": "en:Australian Red Cross", "donation:compensation": "no", "healthcare": "blood_donation", "name": "Australian Red Cross Blood Service", "operator": "Australian Red Cross Blood Service", "operator:wikidata": "Q4824602", "operator:wikipedia": "en:Australian Red Cross Blood Service", "short_name": "Blood Service"}, "countryCodes": ["au"], "terms": [], "matchScore": 2, "suggestion": true}, + "amenity/clinic/ZoomCare": {"name": "ZoomCare", "icon": "maki-doctor", "imageURL": "https://graph.facebook.com/ZOOMCare/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q64120374", "amenity": "clinic"}, "addTags": {"amenity": "clinic", "brand": "ZoomCare", "brand:wikidata": "Q64120374", "brand:wikipedia": "en:ZoomCare", "healthcare": "clinic", "name": "ZoomCare", "urgent_care": "yes"}, "reference": {"key": "amenity", "value": "clinic"}, "countryCodes": ["us"], "terms": [], "matchScore": 2, "suggestion": true}, "healthcare/counselling/Jenny Craig": {"name": "Jenny Craig", "icon": "fas-comments", "imageURL": "https://graph.facebook.com/jennycraig/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q6179221", "healthcare": "counselling"}, "addTags": {"brand": "Jenny Craig", "brand:wikidata": "Q6179221", "brand:wikipedia": "en:Jenny Craig, Inc.", "healthcare": "counselling", "healthcare:counselling": "dietitian", "healthcare:speciality": "weight_loss", "name": "Jenny Craig"}, "countryCodes": ["au", "ca", "nz", "us"], "terms": [], "matchScore": 2, "suggestion": true}, "healthcare/counselling/WW Studio": {"name": "WW Studio", "icon": "fas-comments", "imageURL": "https://graph.facebook.com/WW/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q1929466", "healthcare": "counselling"}, "addTags": {"alt_name": "Weight Watchers", "brand": "WW Studio", "brand:wikidata": "Q1929466", "brand:wikipedia": "en:WW International", "healthcare": "counselling", "healthcare:counselling": "dietitian", "healthcare:speciality": "weight_loss", "name": "WW Studio"}, "terms": ["ww"], "matchScore": 2, "suggestion": true}, "landuse/residential/Avalon": {"name": "Avalon", "icon": "maki-building", "imageURL": "https://pbs.twimg.com/profile_images/859879308940193792/us4WbKaN_bigger.jpg", "geometry": ["area"], "tags": {"brand:wikidata": "Q64665938", "landuse": "residential"}, "addTags": {"brand": "Avalon", "brand:wikidata": "Q64665938", "landuse": "residential", "name": "Avalon", "operator": "AvalonBay Communities", "operator:wikidata": "Q4827537", "operator:wikipedia": "en:AvalonBay Communities", "residential": "apartments"}, "countryCodes": ["us"], "terms": [], "matchScore": 2, "suggestion": true}, @@ -2899,6 +2900,7 @@ "leisure/fitness_centre/Snap Fitness": {"name": "Snap Fitness", "icon": "fas-dumbbell", "imageURL": "https://graph.facebook.com/SnapFitness247/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q7547254", "leisure": "fitness_centre"}, "addTags": {"brand": "Snap Fitness", "brand:wikidata": "Q7547254", "brand:wikipedia": "en:Snap Fitness", "leisure": "fitness_centre", "name": "Snap Fitness"}, "terms": [], "matchScore": 2, "suggestion": true}, "leisure/playground/McDonald's PlayPlace": {"name": "McDonald's PlayPlace", "icon": "maki-playground", "imageURL": "https://graph.facebook.com/mcdonalds/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q38076", "leisure": "playground"}, "addTags": {"access": "customers", "brand": "McDonald's", "brand:wikidata": "Q38076", "brand:wikipedia": "en:McDonald's", "leisure": "playground", "name": "McDonald's PlayPlace"}, "terms": ["mcdonald's"], "matchScore": 2, "suggestion": true}, "leisure/sports_centre/YMCA": {"name": "YMCA", "icon": "maki-pitch", "imageURL": "https://graph.facebook.com/YMCA/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q157169", "leisure": "sports_centre"}, "addTags": {"brand": "YMCA", "brand:wikidata": "Q157169", "brand:wikipedia": "en:YMCA", "leisure": "sports_centre", "name": "YMCA"}, "terms": [], "matchScore": 2, "suggestion": true}, + "shop/beauty/tanning/Palm Beach Tan": {"name": "Palm Beach Tan", "icon": "maki-shop", "imageURL": "https://graph.facebook.com/PBTOfficial/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q64027086", "shop": "beauty", "beauty": "tanning"}, "addTags": {"beauty": "tanning", "brand": "Palm Beach Tan", "brand:wikidata": "Q64027086", "brand:wikipedia": "en:Palm Beach Tan", "leisure": "tanning_salon", "name": "Palm Beach Tan", "shop": "beauty"}, "reference": {"key": "leisure", "value": "tanning_salon"}, "countryCodes": ["us"], "terms": [], "matchScore": 2, "suggestion": true}, "office/bail_bond_agent/Aladdin Bail Bonds": {"name": "Aladdin Bail Bonds", "icon": "maki-bank", "imageURL": "https://commons.wikimedia.org/w/index.php?title=Special%3ARedirect%2Ffile%2FAladdin%20Bail%20Bonds%20logo.png&width=100", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q64166257", "office": "bail_bond_agent"}, "addTags": {"brand": "Aladdin Bail Bonds", "brand:wikidata": "Q64166257", "brand:wikipedia": "en:Aladdin Bail Bonds", "name": "Aladdin Bail Bonds", "office": "bail_bond_agent", "opening_hours": "24/7"}, "countryCodes": ["us"], "terms": ["aladdin", "aladin bail bonds", "alladin bail bonds"], "matchScore": 2, "suggestion": true}, "office/employment_agency/Adecco": {"name": "Adecco", "icon": "maki-suitcase", "imageURL": "https://graph.facebook.com/adeccogroupDE/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q353494", "office": "employment_agency"}, "addTags": {"brand": "Adecco", "brand:wikidata": "Q353494", "brand:wikipedia": "en:The Adecco Group", "name": "Adecco", "office": "employment_agency"}, "terms": [], "matchScore": 2, "suggestion": true}, "office/employment_agency/Manpower": {"name": "Manpower", "icon": "maki-suitcase", "imageURL": "https://graph.facebook.com/ManpowerGroup/picture?type=large", "geometry": ["point", "area"], "tags": {"brand:wikidata": "Q1472539", "office": "employment_agency"}, "addTags": {"brand": "Manpower", "brand:wikidata": "Q1472539", "brand:wikipedia": "en:ManpowerGroup", "name": "Manpower", "office": "employment_agency"}, "terms": [], "matchScore": 2, "suggestion": true},