= [[Image(Flag_of_Hungary.svg,36,middle,inline)]] Hungary specific rules = {{{ #!rule meta { title: "Hungary specific rules"; version: "[[revision]]_[[date]]"; description: "Rules, which are limited to Hungary only."; author: "gaben"; link: "https://josm.openstreetmap.de/wiki/Rules/HungarySpecific"; icon: "Flag_of_Hungary.svg"; min-josm-version: "11424"; /* due to territory selectors */ baselanguage: "hu"; } meta[lang=hu] { title: "Magyarországon használatos szabályok"; description: "Magyarországi térképszerkesztéshez használható kiegészítő szabályok, amik a főprogramban elérhető szabályok kiegészítésére szolgálnak"; } *[inside("HU")] { set itthon; } way[highway=~/trunk|primary|secondary|tertiary|unclassified|residential|living_street|service/][name*="u."].itthon { group: "[HU] specifikus szabályok"; throwWarning: "gyanús utca rövidítés, használd a teljes \"utca\" megnevezést"; } way[highway=living_street][access][motor_vehicle].itthon, way[highway=living_street][access][!motor_vehicle].itthon, way[highway=living_street][!access][motor_vehicle].itthon { group: "[HU] specifikus szabályok"; throwError: "lakó-pihenő övezetben a behajtási korlátozás csak járművekre vonatkozik (kivéve kerékpár)!"; suggestAlternative: "vehicle=destination + bicycle=yes"; fixAdd: "bicycle=yes"; fixAdd: "vehicle=destination"; fixRemove: "access"; fixRemove: "motor_vehicle"; } /* way[highway=living_street][!access][!motor_vehicle][vehicle!=destination][bicycle!=yes].itthon, way[highway=living_street][!access][!motor_vehicle][vehicle=destination][bicycle!=yes].itthon, way[highway=living_street][!access][!motor_vehicle][vehicle!=destination][bicycle=yes].itthon { group: "[HU] specifikus szabályok"; throwWarning: "lakó-pihenő övezetben expliciten add meg a járművek behajtási korlátozását"; suggestAlternative: "vehicle=destination + bicycle=yes"; fixAdd: "vehicle=destination"; fixAdd: "bicycle=yes"; } */ way[highway=living_street][!maxspeed].itthon { group: "[HU] specifikus szabályok"; throwWarning: "lakó-pihenő övezetben add meg a jogszabályi maximális sebességet (20 km/h)"; fixAdd: "maxspeed=20"; fixAdd: "source:maxspeed=HU:living_street"; } *[source:maxspeed="HU:urban"][maxspeed!=50].itthon, *[source:maxspeed:forward="HU:urban"][maxspeed:forward!=50].itthon, *[source:maxspeed:backward="HU:urban"][maxspeed:backward!=50].itthon, *[source:maxspeed="HU:rural"][maxspeed!=90].itthon, *[source:maxspeed:forward="HU:rural"][maxspeed:forward!=90].itthon, *[source:maxspeed:backward="HU:rural"][maxspeed:backward!=90].itthon, *[source:maxspeed="HU:trunk"][maxspeed!=110].itthon, *[source:maxspeed:forward="HU:trunk"][maxspeed:forward!=110].itthon, *[source:maxspeed:backward="HU:trunk"][maxspeed:backward!=110].itthon, *[source:maxspeed="HU:motorway"][maxspeed!=130].itthon, *[source:maxspeed:forward="HU:motorway"][maxspeed:forward!=130].itthon, *[source:maxspeed:backward="HU:motorway"][maxspeed:backward!=130].itthon { group: "[HU] specifikus szabályok"; throwWarning: "a maximálisan megengedett sebesség és a sebességforrás nem egyezik"; } *[!maxspeed][!maxspeed:forward][!maxspeed:backward] { set no_maxspeed; } *[maxspeed:type="HU:urban"].itthon.no_maxspeed, *[source:maxspeed="HU:urban"].itthon.no_maxspeed { group: "[HU] specifikus szabályok"; throwWarning: "hiányzó maximális sebesség: 50"; fixAdd: "maxspeed=50"; } *[maxspeed:type="HU:rural"].itthon.no_maxspeed, *[source:maxspeed="HU:rural"].itthon.no_maxspeed { group: "[HU] specifikus szabályok"; throwWarning: "hiányzó maximális sebesség: 90"; fixAdd: "maxspeed=90"; } *[maxspeed:type][source:maxspeed].itthon { group: "[HU] specifikus szabályok"; throwWarning: "{0.key} és {1.key} ugyanazon az objektumon, távolítsd el az egyiket"; } *[name=~/(?i)tüzép|tüzifa/][shop!=trade][!highway][!railway].itthon { group: "[HU] specifikus szabályok"; throwWarning: "tüzéptelepekre használd a shop=trade címkézést"; fixAdd: "shop=trade"; } *[building][name=~/(?i)kastély/][historic][historic!=castle].itthon { group: "[HU] specifikus szabályok"; throwWarning: "történelmi kastélyokra használd a historic=castle + castle_type=* címkézést"; fixAdd: "historic=castle"; } *[shop=clothes][name=~/(?i)használt/][!second_hand].itthon { group: "[HU] specifikus szabályok"; throwWarning: "használt ruhás bolthoz használd a second_hand=yes címkézést"; fixAdd: "second_hand=yes"; } *[landuse=cemetery][name=~/(?i)zsidó/][religion!=jewish].itthon { group: "[HU] specifikus szabályok"; throwWarning: "zsidó temetőhöz használd a religion=jewish címkézést"; fixAdd: "religion=jewish"; } *[historic=memorial][name=~/(?i)háború/][memorial!=war_memorial].itthon { group: "[HU] specifikus szabályok"; throwWarning: "háborús emlékműhöz használd a memorial=war_memorial címkézést"; fixAdd: "memorial=war_memorial"; } *[memorial=war_memorial][!memorial:conflict][name=~/(?i)(?