Changeset 18719 in josm for trunk/resources/data/validator


Ignore:
Timestamp:
2023-04-27T16:45:28+02:00 (19 months ago)
Author:
taylor.smock
Message:

Fix #21782: Deprecate vending=parcel_pickup (patch by gaben, modified)

On 2022-01-03, the osmwiki:Proposed_features/amenity=parcel_locker was approved.
It specifically deprecated vending=parcel_pickup and vending_parcel_mail_in.

Location:
trunk/resources/data/validator
Files:
2 edited

Legend:

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

    r18647 r18719  
    23642364}
    23652365
     2366/* #21782 */
     2367*[amenity=vending_machine][vending=parcel_mail_in],
     2368*[amenity=vending_machine][vending=parcel_pickup] {
     2369  set .parcel_fixable;
     2370  throwWarning: tr("{0} is deprecated", "{1.tag}");
     2371  suggestAlternative: "amenity=parcel_locker + {1.value}=yes";
     2372  fixAdd: "amenity=parcel_locker";
     2373  fixAdd: "{1.value}=yes";
     2374  fixRemove: "vending";
     2375  group: tr("deprecated tagging");
     2376  assertMatch: "node amenity=vending_machine vending=parcel_mail_in";
     2377  assertMatch: "node amenity=vending_machine vending=parcel_pickup";
     2378}
     2379*[amenity=vending_machine][vending][vending~=parcel_mail_in][vending~=parcel_pickup][count(uniq_list(split(";", tag("vending")))) == 2] {
     2380  set .parcel_fixable;
     2381  throwWarning: tr("{0} is deprecated", "{1.tag}");
     2382  suggestAlternative: "amenity=parcel_locker + parcel_pickup=yes + parcel_mail_in=yes";
     2383  fixAdd: "amenity=parcel_locker";
     2384  fixAdd: "parcel_pickup=yes";
     2385  fixAdd: "parcel_mail_in=yes";
     2386  fixRemove: "vending";
     2387  group: tr("deprecated tagging");
     2388  assertMatch: "node amenity=vending_machine vending=parcel_mail_in;parcel_pickup";
     2389  assertMatch: "node amenity=vending_machine vending=parcel_pickup;parcel_mail_in";
     2390}
     2391*[amenity=vending_machine][vending~=parcel_mail_in]!.parcel_fixable,
     2392*[amenity=vending_machine][vending~=parcel_pickup]!.parcel_fixable {
     2393  throwWarning: tr("{0} is deprecated", "{1.tag}");
     2394  suggestAlternative: "amenity=parcel_locker + {1.value}=yes";
     2395  assertMatch: "node amenity=vending_machine vending=parcel_pickup;stamp";
     2396  group: tr("deprecated tagging");
     2397}
     2398
    23662399/* #21954 decoturf was added to JOSM presets in r8123 and replaced with acrylic in r18404 */
    23672400*[surface=decoturf] {
  • trunk/resources/data/validator/ignoretags.cfg

    r18680 r18719  
    575575K:vending=photos
    576576K:vending=photo
     577K:vending=parcel_pickup
     578K:vending=parcel_mail_in
    577579K:vending=parcel_pickup;parcel_mail_in
    578580E:tracktype
     
    744746K:amenity=childcare
    745747K:amenity=loading_dock
    746 K:amenity=parcel_locker
    747748K:amenity=payment_terminal
    748749K:barrier=sliding_gate
Note: See TracChangeset for help on using the changeset viewer.