Changeset 9156 in josm


Ignore:
Timestamp:
2015-12-26T01:54:26+01:00 (4 years ago)
Author:
Don-vip
Message:

fix #12205 - add deprecation warnings for amenity=kiosk, amenity=shop, shop=fishmonger, shop=fish, shop=betting, shop=perfume, amenity=exercise_point, shop=auto_parts, amenity=car_repair

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/data/validator/deprecated.mapcss

    r9093 r9156  
    575575  suggestAlternative: "{1.tag}";
    576576}
     577
     578/* #12205 */
     579*[amenity=kiosk] {
     580  throwWarning: tr("{0} is deprecated", "{0.tag}");
     581  suggestAlternative: "shop=kiosk";
     582  fixChangeKey: "amenity => shop";
     583}
     584*[amenity=shop] {
     585  throwWarning: tr("{0} is deprecated", "{0.tag}");
     586  suggestAlternative: "shop=*";
     587}
     588*[shop=fishmonger] {
     589  throwWarning: tr("{0} is deprecated", "{0.tag}");
     590  suggestAlternative: "shop=seafood";
     591  fixAdd: "shop=seafood";
     592}
     593*[shop=fish] {
     594  throwWarning: tr("{0} is deprecated", "{0.tag}");
     595  suggestAlternative: "shop=seafood, shop=pet or shop=fishing";
     596}
     597*[shop=betting] {
     598  throwWarning: tr("{0} is deprecated", "{0.tag}");
     599  suggestAlternative: "shop=bookmaker, shop=lottery, amenity=casino, leisure=amusement_arcade, leisure=adult_gaming_centre or amenity=gambling";
     600}
     601*[shop=perfume] {
     602  throwWarning: tr("{0} is deprecated", "{0.tag}");
     603  suggestAlternative: "shop=perfumery";
     604  fixAdd: "shop=perfumery";
     605}
     606*[amenity=exercise_point] {
     607  throwWarning: tr("{0} is deprecated", "{0.tag}");
     608  suggestAlternative: "leisure=fitness_station";
     609  fixAdd: "leisure=fitness_station";
     610  fixRemove: "amenity";
     611}
     612*[shop=auto_parts] {
     613  throwWarning: tr("{0} is deprecated", "{0.tag}");
     614  suggestAlternative: "shop=car_parts";
     615  fixAdd: "shop=car_parts";
     616}
     617*[amenity=car_repair] {
     618  throwWarning: tr("{0} is deprecated", "{0.tag}");
     619  suggestAlternative: "shop=car_repair";
     620  fixChangeKey: "amenity => shop";
     621}
Note: See TracChangeset for help on using the changeset viewer.