mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
Add links to the main error object in KeepRight error messages
re: https://github.com/openstreetmap/iD/issues/5679#issuecomment-452281850
This commit is contained in:
+152
-83
@@ -1,17 +1,26 @@
|
||||
{
|
||||
"localizeStrings": {
|
||||
"node": "node",
|
||||
"way": "way",
|
||||
"relation": "relation",
|
||||
"highway": "highway",
|
||||
"railway": "railway",
|
||||
"waterway": "waterway",
|
||||
"cycleway": "cycleway",
|
||||
"footpath": "footpath",
|
||||
"'cycleway/footpath": "cycleway_footpath",
|
||||
"riverbank": "riverbank",
|
||||
"bridge": "bridge",
|
||||
"tunnel": "tunnel",
|
||||
"this node": "node",
|
||||
"this way": "way",
|
||||
"this relation": "relation",
|
||||
"this one-way": "oneway",
|
||||
"this highway": "highway",
|
||||
"this railway": "railway",
|
||||
"this waterway": "waterway",
|
||||
"this cycleway": "cycleway",
|
||||
"this footpath": "footpath",
|
||||
"this cycleway/footpath": "cycleway_footpath",
|
||||
"this riverbank": "riverbank",
|
||||
"this crossing": "crossing",
|
||||
"this railway crossing": "railway_crossing",
|
||||
"this bridge": "bridge",
|
||||
"this tunnel": "tunnel",
|
||||
"this boundary": "boundary",
|
||||
"this turn-restriction": "turn_restriction",
|
||||
"this roundabout": "roundabout",
|
||||
"this mini-roundabout": "mini_roundabout",
|
||||
"this track": "track",
|
||||
"this feature": "feature",
|
||||
"place_of_worship": "place_of_worship",
|
||||
"pub": "pub",
|
||||
"restaurant": "restaurant",
|
||||
@@ -28,7 +37,9 @@
|
||||
"fast_food": "fast_food",
|
||||
"fuel": "fuel",
|
||||
"from": "from",
|
||||
"to": "to"
|
||||
"to": "to",
|
||||
"left-hand": "left_hand",
|
||||
"right-hand": "right_hand"
|
||||
},
|
||||
"errorTypes": {
|
||||
"20": {
|
||||
@@ -42,137 +53,167 @@
|
||||
"title": "non-closed_areas",
|
||||
"severity": "error",
|
||||
"description": "This way is tagged with '$1' and should be closed-loop.",
|
||||
"regex": "'(.+)'"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this way) is tagged with '(.+)'"
|
||||
},
|
||||
"40": {
|
||||
"title": "dead-ended one-ways",
|
||||
"severity": "error",
|
||||
"description": "The first node (id $1) of this one-way is not connected to any other way",
|
||||
"IDs": ["n"],
|
||||
"regex": "\\(id (\\d+)\\)"
|
||||
"IDs": ["n", "this"],
|
||||
"regex": "\\(id (\\d+)\\) of (this one-way)"
|
||||
},
|
||||
"41": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "The last node (id $1) of this one-way is not connected to any other way",
|
||||
"IDs": ["n"],
|
||||
"regex": "\\(id (\\d+)\\)"
|
||||
"IDs": ["n", "this"],
|
||||
"regex": "\\(id (\\d+)\\) of (this one-way)"
|
||||
},
|
||||
"42": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This node cannot be reached because one-ways only lead away from here"
|
||||
"description": "This node cannot be reached because one-ways only lead away from here",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this node)"
|
||||
},
|
||||
"43": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "You cannot escape from this node because one-ways only lead to here"
|
||||
"description": "You cannot escape from this node because one-ways only lead to here",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this node)"
|
||||
},
|
||||
"50": {
|
||||
"title": "almost-junctions",
|
||||
"severity": "error",
|
||||
"description": "This node is very close but not connected to way #$1",
|
||||
"IDs": ["w"],
|
||||
"regex": "way #(\\d+)"
|
||||
"IDs": ["this", "w"],
|
||||
"regex": "(this node) is very close but not connected to way #(\\d+)"
|
||||
},
|
||||
"60": {
|
||||
"title": "deprecated tags",
|
||||
"severity": "warning",
|
||||
"description": "This $1 uses deprecated tag $2. Please use $3 instead!",
|
||||
"regex": "This (node|way|relation) uses deprecated tag '(.+)'\\. Please use "(.+)""
|
||||
"IDs": ["this", "", ""],
|
||||
"regex": "(this (?:node|way|relation)) uses deprecated tag '(.+)'\\. Please use "(.+)""
|
||||
},
|
||||
"70": {
|
||||
"title": "missing tags",
|
||||
"severity": "error",
|
||||
"description": ""
|
||||
"description": "This $1 has an empty tag: $2",
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:node|way|relation)) has an empty tag: "(.+)=""
|
||||
},
|
||||
"71": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This way has no tags"
|
||||
"description": "This way has no tags",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"72": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This node is not member of any way and does not have any tags"
|
||||
"description": "This node is not member of any way and does not have any tags",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this node)"
|
||||
},
|
||||
"73": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This way has a $1 tag but no highway tag",
|
||||
"regex": "has a (.+) tag"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this way) has a (.+) tag"
|
||||
},
|
||||
"74": {
|
||||
"title": "missing tags",
|
||||
"severity": "error",
|
||||
"description": "This $1 has an empty tag: $2",
|
||||
"regex": "This (node|way|relation) has an empty tag: "(.+)=""
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:node|way|relation)) has an empty tag: "(.+)=""
|
||||
},
|
||||
"75": {
|
||||
"description": "This (node|way|relation) has a name \\((.+)\\) but no other tag",
|
||||
"regex": "This (node|way|relation) has a name \\((.+)\\)"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:node|way|relation)) has a name \\((.+)\\)"
|
||||
},
|
||||
"90": {
|
||||
"title": "motorways without ref",
|
||||
"severity": "error",
|
||||
"description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag"
|
||||
"description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"100": {
|
||||
"title": "places of worship without religion",
|
||||
"severity": "error",
|
||||
"description": "This $1 is tagged as place of worship and therefore needs a religion tag",
|
||||
"regex": "This (node|way|relation) is"
|
||||
"IDs": ["this"],
|
||||
"regex": "(this (?:node|way|relation))"
|
||||
},
|
||||
"110": {
|
||||
"title": "point of interest without name",
|
||||
"severity": "error",
|
||||
"description": "This node is tagged as $1 and therefore needs a name tag",
|
||||
"regex": "as (.+) and"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:node|way|relation)) is tagged as (.+) and"
|
||||
},
|
||||
"120": {
|
||||
"title": "ways without nodes",
|
||||
"severity": "error",
|
||||
"description": "This way has just one single node"
|
||||
"description": "This way has just one single node",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"130": {
|
||||
"title": "floating islands",
|
||||
"severity": "error",
|
||||
"description": "This way is not connected to the rest of the map"
|
||||
"description": "This way is not connected to the rest of the map",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"150": {
|
||||
"title": "railway crossing without tag",
|
||||
"severity": "error",
|
||||
"description": "This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing"
|
||||
"description": "This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this crossing)"
|
||||
},
|
||||
"160": {
|
||||
"title": "wrongly used railway tag",
|
||||
"severity": "error",
|
||||
"description": "There are ways in different layers coming together in this railway crossing. There are ways tagged as tunnel or bridge coming together in this railway crossing"
|
||||
"description": "There are ways in different layers coming together in this railway crossing. There are ways tagged as tunnel or bridge coming together in this railway crossing",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this railway crossing)"
|
||||
},
|
||||
"170": {
|
||||
"title": "FIXME tagged items",
|
||||
"severity": "error",
|
||||
"description": "(.*)",
|
||||
"regex": "(.*)"
|
||||
"description": "This feature has a FIXME tag: (.*)",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this feature) has a FIXME tag: (.*)"
|
||||
},
|
||||
"180": {
|
||||
"title": "relations without type",
|
||||
"severity": "error",
|
||||
"description": "This relation has no type tag which is mandatory for relations"
|
||||
"description": "This relation has no type tag which is mandatory for relations",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this relation)"
|
||||
},
|
||||
"190": {
|
||||
"title": "intersections without junctions",
|
||||
"severity": "error",
|
||||
"description": "This $1 intersects the $2 #$3 but there is no junction node",
|
||||
"IDs": ["", "", "w"],
|
||||
"regex": "This (.+) intersects the (.+) #(\\d+)"
|
||||
"IDs": ["this", "", "w"],
|
||||
"regex": "(this .+) intersects the (.+) #(\\d+)"
|
||||
},
|
||||
"200": {
|
||||
"title": "overlapping ways",
|
||||
"severity": "error",
|
||||
"IDs": ["", "","w"],
|
||||
"description": "This $1 overlaps the $2 #$3",
|
||||
"regex": "This (.+) overlaps the (.+) #(\\d+)"
|
||||
"IDs": ["this", "", "w"],
|
||||
"regex": "(this .+) overlaps the (.+) #(\\d+)"
|
||||
},
|
||||
"210": {
|
||||
"title": "loopings",
|
||||
@@ -183,48 +224,55 @@
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This way contains more than one node at least twice. Nodes are $1.",
|
||||
"IDs": ["211"],
|
||||
"regex": "Nodes are ((?:#\\d+(?:, )?)+)\\."
|
||||
"IDs": ["this", "211"],
|
||||
"regex": "(this way) contains more than one node at least twice. Nodes are ((?:#\\d+(?:, )?)+)\\."
|
||||
},
|
||||
"212": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "This way has only two different nodes and contains one of them more than once"
|
||||
"description": "This way has only two different nodes and contains one of them more than once",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"220": {
|
||||
"title": "misspelled tags",
|
||||
"severity": "error",
|
||||
"description": "This $1 is tagged '$2' where $3 looks like $4",
|
||||
"regex": "This (node|way|relation) is tagged '(.+)' where "(.+)" looks like "(.+)""
|
||||
"regex": "(this (?:node|way|relation)) is tagged '(.+)' where "(.+)" looks like "(.+)""
|
||||
},
|
||||
"221": {
|
||||
"title": "",
|
||||
"severity": "error",
|
||||
"description": "The key of this $1's tag is 'key': $2",
|
||||
"regex": "this (node|way|relation)\\'s tag is \\'key\\': (.+)"
|
||||
"regex": "(this (?:node|way|relation))\\'s tag is \\'key\\': (.+)"
|
||||
},
|
||||
"230": {
|
||||
"title": "layer conflicts",
|
||||
"severity": "error",
|
||||
"description": "Connected ways should be on the same layer. Crossings on intermediate nodes of ways on different layers are obviously wrong. Junctions on end-nodes of ways on different layers are also deprecated, but common practice. So you may ignore this part of the check and switch them off separately. Please note that bridges are set to layer +1, and tunnels to -1, anything else to layer 0 implicitly if no layer tag is present."
|
||||
"description": "This node is a junction of ways on different layers.",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this node)"
|
||||
},
|
||||
"231": {
|
||||
"title": "mixed layers intersection",
|
||||
"severity": "error",
|
||||
"description": "This node is a junction of ways on different layers: $1",
|
||||
"IDs": ["231"],
|
||||
"regex": "layers: (.+)"
|
||||
"IDs": ["this", "231"],
|
||||
"regex": "(this node) is a junction of ways on different layers: (.+)"
|
||||
},
|
||||
"232": {
|
||||
"title": "strange layers",
|
||||
"severity": "error",
|
||||
"description": "This $1 is tagged with layer $2. This need not be an error, but it looks strange",
|
||||
"regex": "This (bridge|tunnel) is tagged with layer (-?\\d+)\\."
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:bridge|tunnel)) is tagged with layer (-?\\d+)\\."
|
||||
},
|
||||
"270": {
|
||||
"title": "motorways connected directly",
|
||||
"severity": "error",
|
||||
"description": "This node is a junction of a motorway and a highway other than motorway, motorway_link, trunk, rest_area or construction. Service or unclassified is only valid if it has access=no/private or it leads to a motorway service area or if it is a service=parking_aisle."
|
||||
"description": "This node is a junction of a motorway and a highway other than motorway, motorway_link, trunk, rest_area or construction. Service or unclassified is only valid if it has access=no/private or it leads to a motorway service area or if it is a service=parking_aisle.",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this node)"
|
||||
},
|
||||
"280": {
|
||||
"title": "boundaries",
|
||||
@@ -234,7 +282,9 @@
|
||||
"281": {
|
||||
"title": "missing name",
|
||||
"severity": "error",
|
||||
"description": "This boundary has no name"
|
||||
"description": "This boundary has no name",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this boundary)"
|
||||
},
|
||||
"282": {
|
||||
"title": "missing admin level",
|
||||
@@ -258,7 +308,8 @@
|
||||
"title": "admin_level too high",
|
||||
"severity": "error",
|
||||
"description": "This boundary-way has admin_level $1 but belongs to a relation with lower admin_level (higher priority); it should have the lowest admin_level of all relations",
|
||||
"regex": "admin_level (-?\\d+) but"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this boundary)-way has admin_level (-?\\d+) but"
|
||||
},
|
||||
"290": {
|
||||
"title": "restrictions",
|
||||
@@ -269,58 +320,64 @@
|
||||
"title": "missing type",
|
||||
"severity": "error",
|
||||
"description": "This turn-restriction has no (?:known )?restriction type",
|
||||
"regex": "This turn-restriction has no (?:known )?restriction type"
|
||||
"IDs": ["this"],
|
||||
"regex": "(this turn-restriction) has"
|
||||
},
|
||||
"292": {
|
||||
"title": "missing from way",
|
||||
"severity": "error",
|
||||
"description": "A turn-restriction needs exactly one from member. This one has $1",
|
||||
"regex": "has (\\d+)"
|
||||
"description": "This turn-restriction needs exactly one from member. This one has $1",
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this turn-restriction) needs.+has (\\d+)"
|
||||
},
|
||||
"293": {
|
||||
"title": "missing to way",
|
||||
"severity": "error",
|
||||
"description": "A turn-restriction needs exactly one to member. This one has $1",
|
||||
"regex": "has (\\d+)"
|
||||
"description": "This turn-restriction needs exactly one to member. This one has $1",
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this turn-restriction) needs.+has (\\d+)"
|
||||
},
|
||||
"294": {
|
||||
"title": "from or to not a way",
|
||||
"severity": "error",
|
||||
"description": "From- and To-members of turn restrictions need to be ways. $1",
|
||||
"IDs": ["294"],
|
||||
"regex": "ways\\. ((?:(?:from|to) (?:node|relation) #\\d+,?)+)"
|
||||
"description": "From- and To-members of this turn-restriction need to be ways. $1",
|
||||
"IDs": ["this", "294"],
|
||||
"regex": "(this turn-restriction)~.+ways\\. ((?:(?:from|to) (?:node|relation) #\\d+,?)+)"
|
||||
},
|
||||
"295": {
|
||||
"title": "via is not on the way ends",
|
||||
"severity": "error",
|
||||
"description": "via (node #$1) is not the first or the last member of (from|to) (way #$3)",
|
||||
"IDs": ["n", "", "w"],
|
||||
"regex": "via \\(node #(\\d+)\\) is not the first or the last member of (from|to) \\(way #(\\d+)\\)"
|
||||
"IDs": ["this", "n", "", "w"],
|
||||
"regex": "(this turn-restriction)~via \\(node #(\\d+)\\).+ of (from|to) \\(way #(\\d+)\\)"
|
||||
},
|
||||
"296": {
|
||||
"title": "wrong restriction angle",
|
||||
"severity": "error",
|
||||
"description": "restriction type is $1, but angle is $2 degrees. Maybe the restriction type is not appropriate?",
|
||||
"regex": "is (\\w+), but angle is (-?\\d+) degrees"
|
||||
"description": "This turn-restriction type is $1, but angle is $2 degrees. Maybe the restriction type is not appropriate?",
|
||||
"IDs": ["this", "", ""],
|
||||
"regex": "(this turn-restriction)~.+is (\\w+), but angle is (-?\\d+)"
|
||||
},
|
||||
"297": {
|
||||
"title": "wrong direction of to member",
|
||||
"severity": "error",
|
||||
"description": "wrong direction of to way $1",
|
||||
"IDs": ["w"],
|
||||
"regex": "way (\\d+)"
|
||||
"IDs": ["this", "w"],
|
||||
"regex": "(this turn-restriction)~.+to way (\\d+)"
|
||||
},
|
||||
"298": {
|
||||
"title": "already restricted by oneway",
|
||||
"severity": "error",
|
||||
"description": "entry already prohibited by oneway tag on $1",
|
||||
"IDs": ["w"],
|
||||
"regex": "on (\\d+)"
|
||||
"IDs": ["this", "w"],
|
||||
"regex": "(this turn-restriction)~.+tag on (\\d+)"
|
||||
},
|
||||
"300": {
|
||||
"title": "missing maxspeed",
|
||||
"severity": "warning",
|
||||
"description": "missing maxspeed tag"
|
||||
"description": "This highway is missing a maxspeed tag",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this highway)"
|
||||
},
|
||||
"310": {
|
||||
"title": "roundabouts",
|
||||
@@ -330,56 +387,66 @@
|
||||
"311": {
|
||||
"title": "not closed loop",
|
||||
"severity": "error",
|
||||
"description": "This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout)"
|
||||
"description": "This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout)",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"312": {
|
||||
"title": "wrong direction",
|
||||
"severity": "error",
|
||||
"description": "If this ((?:mini_)?roundabout) is in a country with (left|right)-hand traffic then its orientation goes the wrong way around",
|
||||
"regex": "this ((?:mini_)?roundabout) is in a country with (left|right)-hand"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:mini_)?roundabout) is in a country with ((?:left|right)-hand)"
|
||||
},
|
||||
"313": {
|
||||
"title": "faintly connected",
|
||||
"severity": "error",
|
||||
"description": "This roundabout has only $1 other roads connected. Roundabouts typically have three",
|
||||
"regex": "only (\\d) other"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this roundabout) has only (\\d) other"
|
||||
},
|
||||
"320": {
|
||||
"title": "*_link connections",
|
||||
"severity": "error",
|
||||
"description": "This way is tagged as highway=$1_link but doesn't have a connection to any other $1 or $1_link",
|
||||
"regex": "(highway=.+) but doesn't have a connection to any other (.+) or (.+)"
|
||||
"IDs": ["this", "", "", "", ""],
|
||||
"regex": "(this way) is tagged as (highway=.+) but doesn't have a connection to any other (.+) or (.+)"
|
||||
},
|
||||
"350": {
|
||||
"title": "bridge-tags",
|
||||
"severity": "error",
|
||||
"description": "This bridge does not have a tag in common with its surrounding ways that shows the purpose of this bridge. There should be one of these tags: (.+)",
|
||||
"NOTE": "Group can be arbitrary list of form: key=value,key=value,key=value...",
|
||||
"regex": "these tags: (.+)"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this bridge).*tags: (.+)"
|
||||
},
|
||||
"360": {
|
||||
"title": "language unknown",
|
||||
"severity": "warning",
|
||||
"description": "It would be nice if this (node|way|relation) had an additional tag 'name:XX=(.+)' where XX shows the language of its name '\\2'",
|
||||
"regex": "this (node|way|relation) had an additional tag 'name:XX=(.+)' where XX shows the language of its name '\\2'"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this (?:node|way|relation)) had an additional tag 'name:XX=(.+)' where"
|
||||
},
|
||||
"370": {
|
||||
"title": "doubled places",
|
||||
"severity": "error",
|
||||
"description": "This node has tags in common with the surrounding way #$1 ((?:\\(including the name '.+'\\) )?)and seems to be redundand",
|
||||
"IDs": ["w","370"],
|
||||
"regex": "way #(\\d+) ((?:\\(including the name '.+'\\) )?)and"
|
||||
"IDs": ["this", "w", "370"],
|
||||
"regex": "(this node) has tags in common with the surrounding way #(\\d+) ((?:\\(including the name '.+'\\) )?)and"
|
||||
},
|
||||
"380": {
|
||||
"title": "non-physical use of sport-tag",
|
||||
"severity": "error",
|
||||
"description": "This way is tagged sport=$1 but has no physical tag like e.g. leisure, building, amenity or highway",
|
||||
"regex": "(sport=.+) but"
|
||||
"IDs": ["this", ""],
|
||||
"regex": "(this way) is tagged (sport=.+) but"
|
||||
},
|
||||
"390": {
|
||||
"title": "missing tracktype",
|
||||
"severity": "warning",
|
||||
"description": "This track doesn''t have a tracktype"
|
||||
"description": "This track doesn''t have a tracktype",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this track)"
|
||||
},
|
||||
"400": {
|
||||
"title": "geometry glitches",
|
||||
@@ -396,7 +463,9 @@
|
||||
"402": {
|
||||
"title": "impossible angles",
|
||||
"severity": "error",
|
||||
"description": "this way bends in a very sharp angle here"
|
||||
"description": "this way bends in a very sharp angle here",
|
||||
"IDs": ["this"],
|
||||
"regex": "(this way)"
|
||||
},
|
||||
"410": {
|
||||
"title": "website",
|
||||
|
||||
Reference in New Issue
Block a user