Simplify translation strings

This commit is contained in:
Bryan Housel
2018-12-22 12:12:28 -05:00
parent f7150004c0
commit 3785ffb154
5 changed files with 990 additions and 1102 deletions
+185 -256
View File
@@ -667,263 +667,192 @@ en:
node: "Node {id}" node: "Node {id}"
way: "Way {id}" way: "Way {id}"
relation: "Relation {id}" relation: "Relation {id}"
highway: "Highway {id}"
cycleway: "Cycleway {id}"
waterway: "Waterway {id}"
riverbank: "Riverbank {id}"
errorTypes: errorTypes:
errors: 20:
_30: title: 'Multiple nodes on the same spot'
title: 'non-closed_areas' description: 'There is more than one node in this spot. Node IDs: {0}.'
description: 'This way is tagged with {var1}={var2} and should be closed-loop.' 30:
_40: title: 'Non-closed areas'
title: 'dead-ended one-ways' description: 'This way is tagged with "{0}={1}" and should be a closed loop.'
description: 'The first node (id {var1}) of this one-way is not connected to any other way.' 40:
_41: title: 'Impossible oneways'
title: '' description: 'The first node ({0}) of this oneway is not connected to any other way.'
description: 'The last node (id {var1}) of this one-way is not connected to any other way.' 41:
_42: description: 'The last node ({0}) of this oneway is not connected to any other way.'
title: '' 42:
description: 'This node cannot be reached because one-ways only lead away from here.' description: 'You cannot reach this node because all ways leading from it are oneway.'
_43: 43:
title: '' description: 'You cannot escape from this node because all ways leading to it are oneway.'
description: 'You cannot escape from this node because one-ways only lead to here.' 50:
_50: title: 'Almost-junctions'
title: 'almost-junctions' description: 'This node is very close but not connected to way {0}.'
description: 'This node is very close but not connected to way #{var1}.' 60:
_70: title: 'Deprecated tags'
title: 'missing tags' description: 'This {0} uses deprecated tag "{1}={2}". Please use "{3}" instead.'
description: 'This {var1} has an empty tag: "{var2}".' 70:
_71: title: 'Missing tags'
title: 'way without tags' description: 'This {0} has an empty tag: "{1}".'
description: 'This way has no tags.' 71:
_72: description: 'This way has no tags.'
title: 'node without tags' 72:
description: 'This node is not member of any way and doesn''t have any tags.' description: 'This node is not member of any way and doesn''t have any tags.'
_73: 73:
title: 'tracktype with no highway tag' description: 'This way has a "tracktype" tag but no "highway" tag.'
description: 'This way has a "tracktype" tag but no "highway" tag.' 74:
_74: description: 'This {0} has an empty tag: "{1}".'
title: 'empty tag' 75:
description: 'This {var1} has an empty tag: "{var2}".' description: 'This {0} has a name "{1}" but no other tags.'
_75: 90:
title: 'name without tags' title: 'Motorway without ref tag'
description: 'This {var1} has a name ("{var2}") but no other tags.' description: 'This way is tagged as motorway and therefore needs a "ref", "nat_ref", or "int_ref" tag.'
_90: 100:
title: 'motorways without ref' title: 'Place of worship without religion'
description: 'This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag.' description: 'This {0} is tagged as place of worship and therefore needs a "religion" tag.'
_100: 110:
title: 'places of worship without religion' title: 'Point of interest without name'
description: 'This {var1} is tagged as place of worship and therefore needs a religion tag.' description: 'This node is tagged as {0} and therefore needs a name tag.'
_110: 120:
title: 'point of interest without name' title: 'Way without nodes'
description: 'This node is tagged as {var1} and therefore needs a name tag.' description: 'This way has just one single node.'
_120: 130:
title: 'ways without nodes' title: 'Disconnected way'
description: 'This way has just one single node.' description: 'This way is not connected to the rest of the map.'
_130: 150:
title: 'floating islands' title: 'Railway crossing without tag'
description: 'This way is not connected to the rest of the map.' description: 'This crossing of a highway and a railway needs to be tagged as "railway=crossing" or "railway=level_crossing".'
_150: 160:
title: 'railway crossing without tag' title: 'Wrongly used railway tag'
description: 'This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing.' description: 'There are ways in different layers (e.g. tunnel or bridge) meeting at this railway crossing.'
_160: 170:
title: 'wrongly used railway tag' title: 'FIXME tagged items'
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: '{0}'
_170: 180:
title: 'FIXME tagged items' title: 'Relation without type'
description: '{var1}' description: 'This relation is missing a "type" tag.'
_180: 190:
title: 'relations without type' title: 'Intersection without junctions'
description: 'This relation has no type tag which is mandatory for relations.' description: 'This {0} intersects the {1} {2} but there is no junction node.'
_190: 200:
title: 'intersections without junctions' title: 'Overlapping ways'
description: 'Finds way crossings on same layer without common node as a junction.' description: 'This {0} overlaps the {1} {2}.'
_191: 210:
title: 'highway-highway' title: 'Self-intersecting ways'
description: 'This {var1} intersects the {var2} #{var3} but there is no junction node.' description: 'These errors contain self intersecting ways.'
_192: 211:
title: 'highway-waterway' description: 'This way contains more than one node multiple times. Nodes are {0}. This may or may not be an error.'
description: 'This {var1} intersects the {var2} #{var3}.' 212:
_193: description: 'This way has only two different nodes and contains one of them more than once.'
title: 'highway-riverbank' 220:
description: 'This {var1} intersects the {var2} #{var3}.' title: 'Misspelled tag'
_194: description: 'This {0} is tagged "{1}={2}" where "{3}" looks like "{4}".'
title: 'waterway-waterway' 221:
description: 'This {var1} intersects the {var2} #{var3} but there is no junction node.' description: 'This {0} has a tag with key "{1}".'
_195: 230:
title: 'cycleway-cycleway' title: 'Layer Conflict'
description: 'This {var1} intersects the {var2} #{var3} but there is no junction node.' description: 'This node is a junction of ways on different layers.'
_196: 231:
title: 'highway-cycleway' description: 'This node is a junction of ways on different layers: {0}.'
description: 'This {var1} intersects the {var2} #{var3} but there is no junction node.' 232:
_197: description: 'This {0} is tagged with "layer={1}". This need not be an error but it looks strange.'
title: 'cycleway-waterway' 270:
description: 'This {var1} intersects the {var2} #{var3}.' title: 'Unusual motorway connection'
_198: description: 'This node is a junction of a motorway and a highway other than "motorway", "motorway_link", "trunk", "rest_area", or "construction". Connection to "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".'
title: 'cycleway-riverbank' 280:
description: 'This {var1} intersects the {var2} #{var3}.' title: 'Boundary issue'
_200: description: 'There is an unspecified issue with this boundary.'
title: 'overlapping ways' 281:
description: 'Finds overlapping ways on same layer.' title: 'Boundary missing name'
_201: description: 'This boundary has no name.'
title: 'highway-highway' 282:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Boundary missing admin level'
_202: description: 'The boundary of {0} has no valid numeric admin_level. Please do not mix admin levels (e.g. "6;7"). Always tag the lowest admin_level of all boundaries.'
title: 'highway-waterway' 283:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Boundary not a closed loop'
_203: description: 'The boundary of {0} is not a closed loop.'
title: 'highway-riverbank' 284:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Boundary is split'
_204: description: 'The boundary of {0} splits here.'
title: 'waterway-waterway' 285:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Boundary admin_level too high'
_205: description: 'This boundary way has "admin_level={0}" but belongs to a relation with lower "admin_level" (e.g. higher priority); it should have the lowest "admin_level" of all relations.'
title: 'cycleway-cycleway' 290:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Restriction issue'
_206: description: 'There is an unspecified issue with this restriction.'
title: 'highway-cycleway' 291:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Restriction missing type'
_207: description: 'This turn restriction has no known restriction type.'
title: 'cycleway-waterway' 292:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Restriction missing "from" way'
_208: description: 'A turn restriction needs exactly one "from" member. This one has {0}.'
title: 'cycleway-riverbank' 293:
description: 'This {var1} overlaps the {var2} #{var3}.' title: 'Restriction missing "to" way'
_210: description: 'A turn restriction needs exactly one "to" member. This one has {0}.'
title: 'loopings' 294:
description: 'These errors contain self intersecting ways.' title: 'Restriction "from" or "to" is not a way'
_211: description: '"from" and "to" members of turn restrictions need to be ways. {0}.'
title: '' 295:
description: 'This way contains more than one node multiple times. Nodes are {var1}. This may or may not be an error.' title: 'Restriction "via" is not on the way ends'
_212: description: '"via" (node #{0}) is not the first or the last member of "from" (way #{1}).'
title: '' 296:
description: 'This way has only two different nodes and contains one of them more than once.' title: 'Wrong restriction angle'
_220: description: 'Restriction type is "{0}" but angle is {1} degrees. Maybe the restriction type is not appropriate?'
title: 'misspelled tags' 297:
description: 'This {var1} is tagged "{var2}"="{var3}" where "{var4}" looks like "{var5}".' title: 'Wrong direction of to member'
_221: description: 'Wrong direction of "to" way {0}.'
title: '' 298:
description: 'This {var1} has a tag with key "key"="{var2}".' title: 'Redundant restriction - oneway'
_230: description: 'Entry already prohibited by "oneway" tag on {0}.'
title: 'layer conflicts' 300:
description: '' title: 'Missing maxspeed'
_231: description: 'Missing maxspeed tag.'
title: 'mixed layers intersection' 310:
description: 'This node is a junction of ways on different layers: {var1}.' title: 'Roundabout issue'
_232: description: 'There is an unspecified issue with this roundabout.'
title: 'strange layers' 311:
description: 'This {var1} is tagged with layer {var2}. This need not be an error but it looks strange.' title: 'Roundabout not closed loop'
_270: description: 'This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout).'
title: 'motorways connected directly' 312:
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.' title: 'Roundabout wrong direction'
_280: description: 'If this {0} is in a country with {1}-hand traffic then its orientation goes the wrong way around'
title: 'boundaries' 313:
description: '' title: 'Roundabout weakly connected'
_281: description: 'This roundabout has only {0} other road(s) connected. Roundabouts typically have 3 or more.'
title: 'missing name' 320:
description: 'This boundary has no name.' title: 'Improper link connection'
_282: description: 'This way is tagged as "highway={0}_link" but doesn''t have a connection to any other "{1}" or "{2}_link".'
title: 'missing admin level' 350:
description: 'The boundary of {var1} has no valid numeric admin_level. Please do not use admin levels like for example 6;7. Always tag the lowest admin_level of all boundaries.' title: 'Improper bridge tags'
_283: description: 'This bridge doesn''t have a tag in common with its surrounding ways that shows the purpose of this bridge. There should be one of these tags: {0}.'
title: 'no closed loop' 360:
description: 'The boundary of {var1} is not closed-loop.' title: 'Language unknown'
_284: description: 'It would be nice if this {0} had an additional tag "name:XX"="{1}" where XX shows the language of its name "{1}".'
title: 'splitting boundary' 370:
description: 'The boundary of {var1} splits here.' title: 'Doubled places'
_285: description: 'This node has tags in common with the surrounding way #{0} {1} and seems to be redundant.'
title: 'admin_level too high' 380:
description: 'This boundary-way has admin_level {var1} but belongs to a relation with lower admin_level (higher priority); it should have the lowest admin_level of all relations.' title: 'Non-physical use of sport tag'
_290: description: 'This way is tagged "sport={0}" but has no physical tag (e.g. "leisure", "building", "amenity", or "highway".'
title: 'restrictions' 390:
description: 'Analyses all relations tagged type=restriction or following variations type=restriction:hgv type=restriction:caravan type=restriction:motorcar type=restriction:bus type=restriction:agricultural type=restriction:motorcycle type=restriction:bicycle and type=restriction:hazmat.' title: 'Missing tracktype'
_291: description: This track doesn't have a "tracktype" tag.
title: 'missing type' 400:
description: 'This turn-restriction has no known restriction type.' title: 'Geometry issue'
_292: description: 'There is an unspecified issue with the geometry here.'
title: 'missing from way' 401:
description: 'A turn-restriction needs exactly one "from" member. This one has {var1}.' title: 'Missing turn restriction'
_293: description: 'Ways {0} and {1} join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning from way {2} to {3}.'
title: 'missing to way' 402:
description: 'A turn-restriction needs exactly one "to" member. This one has {var1}.' title: 'Impossible angles'
_294: description: 'This way bends in a very sharp angle here.'
title: 'from or to not a way' 410:
description: '"from" and "to" members of turn restrictions need to be ways. {var1}.' title: 'Website issue'
_295: description: 'There is an unspecified issue with a contact website or URL.'
title: 'via is not on the way ends' 411:
description: '"via" (node #{var1}) is not the first or the last member of "from" (way #{var2}).' description: 'The URL cannot be opened (HTTP status code {0}).'
_296: 412:
title: 'wrong restriction angle' description: 'Possible domain squatting: The URL has suspicious text: "{0}".'
description: 'restriction type is {var1} but angle is {var2} degrees. Maybe the restriction type is not appropriate?' 413:
_297: description: 'Possible non-match. Content of the URL did not contain these keywords: ({0}).'
title: 'wrong direction of to member'
description: 'wrong direction of to way {var1}.'
_298:
title: 'already restricted by oneway'
description: 'entry already prohibited by oneway tag on {var1}.'
_310:
title: 'roundabouts'
description: 'Analyses ways with tag junction=roundabout. More then one way can form a roundabout. It supports tag oneway=-1.'
_311:
title: 'not closed loop'
description: 'This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout).'
_312:
title: 'wrong direction'
description: 'If this {var1} is in a country with {var2}-hand traffic then its orientation goes the wrong way around'
_313:
title: 'faintly connected'
description: 'This roundabout has only {var1} other road(s) connected. Roundabouts typically have 3 or more.'
_320:
title: '*_link connections'
description: 'This way is tagged as highway={var1}_link but doesn''t have a connection to any other {var1} or {var1}_link.'
_350:
title: 'bridge-tags'
description: 'This bridge doesn''t have a tag in common with its surrounding ways that shows the purpose of this bridge. There should be one of these tags: {var1}.'
_370:
title: 'doubled places'
description: 'This node has tags in common with the surrounding way #{var1} {var2}and seems to be redundant.'
_380:
title: 'non-physical use of sport-tag'
description: 'This way is tagged "sport"="{var1}" but has no physical tag like e.g. leisure, building, amenity or highway.'
_400:
title: 'geometry glitches'
description: ''
_401:
title: 'missing turn restriction'
description: 'ways {var1} and {var2} join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning from way {var3} to {var4}.'
addition: ' from way {var3} to {var4}.'
_402:
title: 'impossible angles'
description: 'this way bends in a very sharp angle here.'
_410:
title: 'website'
description: 'Web pages are analyzed. Web page is defined by any of the following tags website=* url=* website:mobile=* contact:website=* contact:url=* image=* source:website=* or source:url=*.'
_411:
title: 'http error'
description: 'The URL cannot be opened (HTTP status code {var2}).'
_412:
title: 'domain hijacking'
description: 'Possible domain squatting: The URL has Suspicious text: "{var2}".'
_413:
title: 'non-match'
description: 'Content of the URL did not contain these keywords: ({var2}).'
warnings:
_20:
title: 'multiple nodes on the same spot'
description: 'There is more than one node in this spot. Offending node IDs: {var1}.'
_60:
title: 'depreciated tags'
description: 'This {var1} uses deprecated tag "{var2}"="{var3}". Please use {var4} instead!'
_300:
title: 'missing maxspeed'
description: 'missing maxspeed tag.'
_360:
title: 'language unknown'
description: 'It would be nice if this {var1} had an additional tag "name:XX"="{var2}" where XX shows the language of its name "{var2}".'
_390:
title: 'missing tracktype'
description: This track doesn't have a tracktype.
streetside: streetside:
tooltip: "Streetside photos from Microsoft" tooltip: "Streetside photos from Microsoft"
title: "Photo Overlay (Bing Streetside)" title: "Photo Overlay (Bing Streetside)"
+499 -422
View File
@@ -1,424 +1,501 @@
{ {
"errorTypes": { "errorTypes": {
"errors": { "20": {
"_30": { "title": "multiple nodes on the same spot",
"title": "non-closed_areas", "severity": "warning",
"description": "This way is tagged with ''([\\w:]+)=(\\w+)''and should be closed-loop", "description": "There is more than one node in this spot\\. Offending node IDs: ((?:#\\d+,?)+)",
"regex": true "IDs": ["20"],
}, "regex": true
"_40": { },
"title": "dead-ended one-ways", "30": {
"description": "The first node \\(id (\\d+)\\) of this one-way is not connected to any other way", "title": "non-closed_areas",
"IDs": ["n"], "severity": "error",
"regex": true "description": "This way is tagged with ''([\\w:]+)=(\\w+)''and should be closed-loop",
}, "regex": true
"_41": { },
"title": "", "40": {
"description": "The last node \\(id (\\d+)\\) of this one-way is not connected to any other way", "title": "dead-ended one-ways",
"IDs": ["n"], "severity": "error",
"regex": true "description": "The first node \\(id (\\d+)\\) of this one-way is not connected to any other way",
}, "IDs": ["n"],
"_42": { "regex": true
"title": "", },
"description": "This node cannot be reached because one-ways only lead away from here" "41": {
}, "title": "",
"_43": { "severity": "error",
"title": "", "description": "The last node \\(id (\\d+)\\) of this one-way is not connected to any other way",
"description": "You cannot escape from this node because one-ways only lead to here" "IDs": ["n"],
}, "regex": true
"_50": { },
"title": "almost-junctions", "42": {
"description": "This node is very close but not connected to way #(\\d+)", "title": "",
"IDs": ["w"], "severity": "error",
"regex": true "description": "This node cannot be reached because one-ways only lead away from here"
}, },
"_70": { "43": {
"title": "missing tags", "title": "",
"description": "" "severity": "error",
}, "description": "You cannot escape from this node because one-ways only lead to here"
"_71": { },
"title": "", "50": {
"description": "This way has no tags" "title": "almost-junctions",
}, "severity": "error",
"_72": { "description": "This node is very close but not connected to way #(\\d+)",
"title": "", "IDs": ["w"],
"description": "This node is not member of any way and does not have any tags" "regex": true
}, },
"_73": { "60": {
"title": "", "title": "depreciated tags",
"description": "This way has a tracktype tag but no highway tag" "severity": "warning",
}, "description": "This (node|way|relation) uses deprecated tag '([\\w:]+)=(.+)'\\. Please use "(.+)" instead!",
"_74": { "regex": true
"title": "missing tags", },
"description": "This (node|way|relation) has an empty tag: "([\\w:]+)="", "70": {
"regex": true "title": "missing tags",
}, "severity": "error",
"_75": { "description": ""
"description": "This (node|way|relation) has a name \\((.+)\\) but no other tag", },
"regex": true "71": {
}, "title": "",
"_90": { "severity": "error",
"title": "motorways without ref", "description": "This way has no tags"
"description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag" },
}, "72": {
"_100": { "title": "",
"title": "places of worship without religion", "severity": "error",
"description": "This (node|way|relation) is tagged as place of worship and therefore needs a religion tag", "description": "This node is not member of any way and does not have any tags"
"regex": true },
}, "73": {
"_110": { "title": "",
"title": "point of interest without name", "severity": "error",
"description": "This node is tagged as ([\\w:]+) and therefore needs a name tag", "description": "This way has a tracktype tag but no highway tag"
"regex": true },
}, "74": {
"_120": { "title": "missing tags",
"title": "ways without nodes", "severity": "error",
"description": "This way has just one single node" "description": "This (node|way|relation) has an empty tag: "([\\w:]+)="",
}, "regex": true
"_130": { },
"title": "floating islands", "75": {
"description": "This way is not connected to the rest of the map" "description": "This (node|way|relation) has a name \\((.+)\\) but no other tag",
}, "regex": true
"_150": { },
"title": "railway crossing without tag", "90": {
"description": "This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing" "title": "motorways without ref",
}, "severity": "error",
"_160": { "description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag"
"title": "wrongly used railway tag", },
"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" "100": {
}, "title": "places of worship without religion",
"_170": { "severity": "error",
"title": "FIXME tagged items", "description": "This (node|way|relation) is tagged as place of worship and therefore needs a religion tag",
"description": "(.*)", "regex": true
"regex": true },
}, "110": {
"_180": { "title": "point of interest without name",
"title": "relations without type", "severity": "error",
"description": "This relation has no type tag which is mandatory for relations" "description": "This node is tagged as ([\\w:]+) and therefore needs a name tag",
}, "regex": true
"_190": { },
"title": "intersections without junctions", "120": {
"description": "Finds way crossings on same layer without common node as a junction" "title": "ways without nodes",
}, "severity": "error",
"_191": { "description": "This way has just one single node"
"title": "highway-highway", },
"description": "This (highway) intersects the (highway) #(\\d+) but there is no junction node", "130": {
"IDs": ["", "", "w"], "title": "floating islands",
"regex": true "severity": "error",
}, "description": "This way is not connected to the rest of the map"
"_192": { },
"title": "highway-waterway", "150": {
"description": "This (highway|waterway) intersects the (highway|waterway) #(\\d+)", "title": "railway crossing without tag",
"IDs": ["", "", "w"], "severity": "error",
"regex": true "description": "This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing"
}, },
"_193": { "160": {
"title": "highway-riverbank", "title": "wrongly used railway tag",
"description": "This (highway|riverbank) intersects the (highway|riverbank) #(\\d+)", "severity": "error",
"IDs": ["", "", "w"], "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"
"regex": true },
}, "170": {
"_194": { "title": "FIXME tagged items",
"title": "waterway-waterway", "severity": "error",
"description": "This (waterway) intersects the (waterway) #(\\d+) but there is no junction node", "description": "(.*)",
"IDs": ["", "", "w"], "regex": true
"regex": true },
}, "180": {
"_195": { "title": "relations without type",
"title": "cycleway-cycleway", "severity": "error",
"description": "This (cycleway/footpath) intersects the (cycleway/footpath) #(\\d+) but there is no junction node", "description": "This relation has no type tag which is mandatory for relations"
"IDs": ["", "", "w"], },
"regex": true "190": {
}, "title": "intersections without junctions",
"_196": { "severity": "error",
"title": "highway-cycleway", "description": "Finds way crossings on same layer without common node as a junction"
"description": "This (highway|cycleway/footpath) intersects the (highway|cycleway/footpath) #(\\d+) but there is no junction node", },
"IDs": ["", "", "w"], "191": {
"regex": true "title": "highway-highway",
}, "severity": "error",
"_197": { "description": "This (highway) intersects the (highway) #(\\d+) but there is no junction node",
"title": "cycleway-waterway", "IDs": ["", "", "w"],
"description": "This (waterway|cycleway/footpath) intersects the (waterway|cycleway/footpath) #(\\d+)", "regex": true
"IDs": ["", "", "w"], },
"regex": true "192": {
}, "title": "highway-waterway",
"_198": { "severity": "error",
"title": "cycleway-riverbank", "description": "This (highway|waterway) intersects the (highway|waterway) #(\\d+)",
"description": "This (riverbank|cycleway/footpath) intersects the (riverbank|cycleway/footpath) #(\\d+)", "IDs": ["", "", "w"],
"IDs": ["", "", "w"], "regex": true
"regex": true },
}, "193": {
"_200": { "title": "highway-riverbank",
"title": "overlapping ways", "severity": "error",
"description": "Finds overlapping ways on same layer" "description": "This (highway|riverbank) intersects the (highway|riverbank) #(\\d+)",
}, "IDs": ["", "", "w"],
"_201": { "regex": true
"title": "highway-highway", },
"description": "This (highway) overlaps the (highway) #(\\d+)", "194": {
"IDs": ["", "", "w"], "title": "waterway-waterway",
"regex": true "severity": "error",
}, "description": "This (waterway) intersects the (waterway) #(\\d+) but there is no junction node",
"_202": { "IDs": ["", "","w"],
"title": "highway-waterway", "regex": true
"description": "This (highway|waterway) overlaps the (highway|waterway) #(\\d+)", },
"IDs": ["", "", "w"], "195": {
"regex": true "title": "cycleway-cycleway",
}, "severity": "error",
"_203": { "description": "This (cycleway/footpath) intersects the (cycleway/footpath) #(\\d+) but there is no junction node",
"title": "highway-riverbank", "IDs": ["", "","w"],
"description": "This (highway|riverbank) overlaps the (highway|riverbank) #(\\d+)", "regex": true
"IDs": ["", "", "w"], },
"regex": true "196": {
}, "title": "highway-cycleway",
"_204": { "severity": "error",
"title": "waterway-waterway", "description": "This (highway|cycleway/footpath) intersects the (highway|cycleway/footpath) #(\\d+) but there is no junction node",
"description": "This (waterway) overlaps the (waterway) #(\\d+)", "IDs": ["", "","w"],
"IDs": ["", "", "w"], "regex": true
"regex": true },
}, "197": {
"_205": { "title": "cycleway-waterway",
"title": "cycleway-cycleway", "severity": "error",
"description": "This (cycleway/footpath) overlaps the (cycleway/footpath) #(\\d+)", "description": "This (waterway|cycleway/footpath) intersects the (waterway|cycleway/footpath) #(\\d+)",
"IDs": ["", "", "w"], "IDs": ["", "","w"],
"regex": true "regex": true
}, },
"_206": { "198": {
"title": "highway-cycleway", "title": "cycleway-riverbank",
"description": "This (highway|cycleway/footpath) overlaps the (highway|cycleway/footpath) #(\\d+)", "severity": "error",
"IDs": ["", "", "w"], "description": "This (riverbank|cycleway/footpath) intersects the (riverbank|cycleway/footpath) #(\\d+)",
"regex": true "IDs": ["", "","w"],
}, "regex": true
"_207": { },
"title": "cycleway-waterway", "200": {
"description": "This (waterway|cycleway/footpath) overlaps the (waterway|cycleway/footpath) #(\\d+)", "title": "overlapping ways",
"IDs": ["", "", "w"], "severity": "error",
"regex": true "description": "Finds overlapping ways on same layer"
}, },
"_208": { "201": {
"title": "cycleway-riverbank", "title": "highway-highway",
"description": "This (riverbank|cycleway/footpath) overlaps the (riverbank|cycleway/footpath) #(\\d+)", "severity": "error",
"IDs": ["", "", "w"], "description": "This (highway) overlaps the (highway) #(\\d+)",
"regex": true "IDs": ["", "","w"],
}, "regex": true
"_210": { },
"title": "loopings", "202": {
"description": "These errors contain self intersecting ways" "title": "highway-waterway",
}, "severity": "error",
"_211": { "description": "This (highway|waterway) overlaps the (highway|waterway) #(\\d+)",
"title": "", "IDs": ["", "","w"],
"description": "This way contains more than one node at least twice\\. Nodes are ((?:#\\d+(?:, )?)+)\\. This may or may not be an error", "regex": true
"IDs": ["211"], },
"regex": true "203": {
}, "title": "highway-riverbank",
"_212": { "severity": "error",
"title": "", "description": "This (highway|riverbank) overlaps the (highway|riverbank) #(\\d+)",
"description": "This way has only two different nodes and contains one of them more than once" "IDs": ["", "","w"],
}, "regex": true
"_220": { },
"title": "misspelled tags", "204": {
"description": "This (node|way|relation) is tagged '([\\w]+)(:([\\w]+))?=(.+)' where "(\\2|\\3|\\4|\\5)" looks like "([\\w\\s]+)"", "title": "waterway-waterway",
"regex": true "severity": "error",
}, "description": "This (waterway) overlaps the (waterway) #(\\d+)",
"_221": { "IDs": ["", "","w"],
"title": "", "regex": true
"description": "The key of this (node|way|relation)''s tag is ''key'': key=(.+)", },
"regex": true "205": {
}, "title": "cycleway-cycleway",
"_230": { "severity": "error",
"title": "layer conflicts", "description": "This (cycleway/footpath) overlaps the (cycleway/footpath) #(\\d+)",
"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." "IDs": ["", "","w"],
}, "regex": true
"_231": { },
"title": "mixed layers intersection", "206": {
"description": "This node is a junction of ways on different layers: ((?:#\\d+\\(-?\\d+\\),?)+)", "title": "highway-cycleway",
"IDs": ["231"], "severity": "error",
"regex": true "description": "This (highway|cycleway/footpath) overlaps the (highway|cycleway/footpath) #(\\d+)",
}, "IDs": ["", "","w"],
"_232": { "regex": true
"title": "strange layers", },
"description": "This (bridge|tunnel) is tagged with layer (-?\\d+)\\. This need not be an error but it looks strange", "207": {
"regex": true "title": "cycleway-waterway",
}, "severity": "error",
"_270": { "description": "This (waterway|cycleway/footpath) overlaps the (waterway|cycleway/footpath) #(\\d+)",
"title": "motorways connected directly", "IDs": ["", "","w"],
"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." "regex": true
}, },
"_280": { "208": {
"title": "boundaries", "title": "cycleway-riverbank",
"description": "Administrative Boundaries can be expressed either by tagging ways or by adding them to a relation. They should be closed-loop sequences of ways, they must not self-intersect or split and they must have a name and an admin_level." "severity": "error",
}, "description": "This (riverbank|cycleway/footpath) overlaps the (riverbank|cycleway/footpath) #(\\d+)",
"_281": { "IDs": ["", "","w"],
"title": "missing name", "regex": true
"description": "This boundary has no name" },
}, "210": {
"_282": { "title": "loopings",
"title": "missing admin level", "severity": "error",
"description": "The boundary of (.+) has no (?:valid numeric )?admin_level\\..*", "description": "These errors contain self intersecting ways"
"regex": true },
}, "211": {
"_283": { "title": "",
"title": "no closed loop", "severity": "error",
"description": "The boundary of (.+) is not closed-loop", "description": "This way contains more than one node at least twice\\. Nodes are ((?:#\\d+(?:, )?)+)\\. This may or may not be an error",
"regex": true "IDs": ["211"],
}, "regex": true
"_284": { },
"title": "splitting boundary", "212": {
"description": "The boundary of (.+) splits here", "title": "",
"regex": true "severity": "error",
}, "description": "This way has only two different nodes and contains one of them more than once"
"_285": { },
"title": "admin_level too high", "220": {
"description": "This boundary-way has admin_level (-?\\d+) but belongs to a relation with lower admin_level (higher priority); it should have the lowest admin_level of all relations", "title": "misspelled tags",
"regex": true "severity": "error",
}, "description": "This (node|way|relation) is tagged '([\\w]+)(:([\\w]+))?=(.+)' where "(\\2|\\3|\\4|\\5)" looks like "([\\w\\s]+)"",
"_290": { "regex": true
"title": "restrictions", },
"description": "Analyses all relations tagged type=restriction or following variations type=restriction:hgv type=restriction:caravan type=restriction:motorcar type=restriction:bus type=restriction:agricultural type=restriction:motorcycle type=restriction:bicycle and type=restriction:hazmat" "221": {
}, "title": "",
"_291": { "severity": "error",
"title": "missing type", "description": "The key of this (node|way|relation)''s tag is ''key'': key=(.+)",
"description": "This turn-restriction has no (?:known )?restriction type", "regex": true
"regex": true },
}, "230": {
"_292": { "title": "layer conflicts",
"title": "missing from way", "severity": "error",
"description": "A turn-restriction needs exactly one from member\\. This one has (\\d+)", "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."
"regex": true },
}, "231": {
"_293": { "title": "mixed layers intersection",
"title": "missing to way", "severity": "error",
"description": "A turn-restriction needs exactly one to member\\. This one has (\\d+)", "description": "This node is a junction of ways on different layers: ((?:#\\d+\\(-?\\d+\\),?)+)",
"regex": true "IDs": ["231"],
}, "regex": true
"_294": { },
"title": "from or to not a way", "232": {
"description": "From- and To-members of turn restrictions need to be ways\\. ((?:(?:from|to) (?:node|relation) #\\d+,?)+)", "title": "strange layers",
"IDs": ["294"], "severity": "error",
"regex": true "description": "This (bridge|tunnel) is tagged with layer (-?\\d+)\\. This need not be an error but it looks strange",
}, "regex": true
"_295": { },
"title": "via is not on the way ends", "270": {
"description": "via \\(node #(\\d+)\\) is not the first or the last member of from \\(way #(\\d+)\\)", "title": "motorways connected directly",
"IDs": ["n", "w"], "severity": "error",
"regex": true "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."
}, },
"_296": { "280": {
"title": "wrong restriction angle", "title": "boundaries",
"description": "restriction type is (\\w+) but angle is (\\d+) degrees. Maybe the restriction type is not appropriate?", "severity": "error",
"regex": true "description": "Administrative Boundaries can be expressed either by tagging ways or by adding them to a relation. They should be closed-loop sequences of ways, they must not self-intersect or split and they must have a name and an admin_level."
}, },
"_297": { "281": {
"title": "wrong direction of to member", "title": "missing name",
"description": "wrong direction of to way (\\d+)", "severity": "error",
"IDs": ["w"], "description": "This boundary has no name"
"regex": true },
}, "282": {
"_298": { "title": "missing admin level",
"title": "already restricted by oneway", "severity": "error",
"description": "entry already prohibited by oneway tag on (\\d+)", "description": "The boundary of (.+) has no (?:valid numeric )?admin_level\\..*",
"IDs": ["w"], "regex": true
"regex": true },
}, "283": {
"_310": { "title": "no closed loop",
"title": "roundabouts", "severity": "error",
"description": "Analyses ways with tag junction=roundabout. More then one way can form a roundabout. It supports tag oneway=-1" "description": "The boundary of (.+) is not closed-loop",
}, "regex": true
"_311": { },
"title": "not closed loop", "284": {
"description": "This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout)" "title": "splitting boundary",
}, "severity": "error",
"_312": { "description": "The boundary of (.+) splits here",
"title": "wrong direction", "regex": true
"description": "If this ((?:mini_)?roundabout) is in a country with (left|right)-hand traffic then its orientation goes the wrong way around", },
"regex": true "285": {
}, "title": "admin_level too high",
"_313": { "severity": "error",
"title": "faintly connected", "description": "This boundary-way has admin_level (-?\\d+) but belongs to a relation with lower admin_level (higher priority); it should have the lowest admin_level of all relations",
"description": "This roundabout has only (\\d) other roads connected. Roundabouts typically have three", "regex": true
"regex": true },
}, "290": {
"_320": { "title": "restrictions",
"title": "*_link connections", "severity": "error",
"description": "This way is tagged as highway=(\\w+)_link but doesn't have a connection to any other \\1 or \\1_link", "description": "Analyses all relations tagged type=restriction or following variations type=restriction:hgv type=restriction:caravan type=restriction:motorcar type=restriction:bus type=restriction:agricultural type=restriction:motorcycle type=restriction:bicycle and type=restriction:hazmat"
"regex": true },
}, "291": {
"_350": { "title": "missing type",
"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: (.+)", "description": "This turn-restriction has no (?:known )?restriction type",
"NOTE": "Group can be arbitrary list of form: key=value,key=value,key=value...", "regex": true
"regex": true },
}, "292": {
"_370": { "title": "missing from way",
"title": "doubled places", "severity": "error",
"description": "This node has tags in common with the surrounding way #(\\d+) ((?:\\(including the name '.+'\\) )?)and seems to be redundand", "description": "A turn-restriction needs exactly one from member\\. This one has (\\d+)",
"IDs": ["w"], "regex": true
"regex": true },
}, "293": {
"_380": { "title": "missing to way",
"title": "non-physical use of sport-tag", "severity": "error",
"description": "This way is tagged sport=(\\w+) but has no physical tag like e.g. leisure, building, amenity or highway", "description": "A turn-restriction needs exactly one to member\\. This one has (\\d+)",
"regex": true "regex": true
}, },
"_400": { "294": {
"title": "geometry glitches", "title": "from or to not a way",
"description": "" "severity": "error",
}, "description": "From- and To-members of turn restrictions need to be ways\\. ((?:(?:from|to) (?:node|relation) #\\d+,?)+)",
"_401": { "IDs": ["294"],
"title": "missing turn restriction", "regex": true
"description": "ways (\\d+) and (\\d+) join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning( from way (\\1|\\2) to (\\1|\\2))?", },
"IDs": ["w", "w", "w", "w"], "295": {
"regex": true "title": "via is not on the way ends",
}, "severity": "error",
"_402": { "description": "via \\(node #(\\d+)\\) is not the first or the last member of from \\(way #(\\d+)\\)",
"title": "impossible angles", "IDs": ["n","w"],
"description": "this way bends in a very sharp angle here" "regex": true
}, },
"_410": { "296": {
"title": "website", "title": "wrong restriction angle",
"description": "Web pages are analyzed. Web page is defined by any of the following tags website=* url=* website:mobile=* contact:website=* contact:url=* image=* source:website=* or source:url=*" "severity": "error",
}, "description": "restriction type is (\\w+) but angle is (\\d+) degrees. Maybe the restriction type is not appropriate?",
"_411": { "regex": true
"title": "http error", },
"description": "The URL \\(<a target=_blank href=(.+)>\\1</a>\\) cannot be opened \\(HTTP status code (\\d+)\\)", "297": {
"regex": true "title": "wrong direction of to member",
}, "severity": "error",
"_412": { "description": "wrong direction of to way (\\d+)",
"title": "domain hijacking", "IDs": ["w"],
"description": "Possible domain squatting: <a target=_blank href=(.+)>\\1</a>\\. Suspicious text is: ''(.+)''", "regex": true
"regex": true },
}, "298": {
"_413": { "title": "already restricted by oneway",
"title": "non-match", "severity": "error",
"description": "Content of the URL (<a target=_blank href=(.+)>\\1</a>) did not contain these keywords: \\((.+)\\)", "description": "entry already prohibited by oneway tag on (\\d+)",
"regex": true "IDs": ["w"],
} "regex": true
}, },
"warnings": { "300": {
"_20": { "title": "missing maxspeed",
"title": "multiple nodes on the same spot", "severity": "warning",
"description": "There is more than one node in this spot\\. Offending node IDs: ((?:#\\d+,?)+)", "description": "missing maxspeed tag"
"IDs": ["20"], },
"regex": true "310": {
}, "title": "roundabouts",
"_60": { "severity": "error",
"title": "depreciated tags", "description": "Analyses ways with tag junction=roundabout. More then one way can form a roundabout. It supports tag oneway=-1"
"description": "This (node|way|relation) uses deprecated tag '([\\w:]+)=(.+)'\\. Please use &quot;(.+)&quot; instead!", },
"regex": true "311": {
}, "title": "not closed loop",
"_300": { "severity": "error",
"title": "missing maxspeed", "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": "missing maxspeed tag" },
}, "312": {
"_360": { "title": "wrong direction",
"title": "language unknown", "severity": "error",
"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'", "description": "If this ((?:mini_)?roundabout) is in a country with (left|right)-hand traffic then its orientation goes the wrong way around",
"regex": true "regex": true
}, },
"_390": { "313": {
"title": "missing tracktype", "title": "faintly connected",
"description": "This track doesn''t have a tracktype" "severity": "error",
} "description": "This roundabout has only (\\d) other roads connected. Roundabouts typically have three",
} "regex": true
},
"320": {
"title": "*_link connections",
"severity": "error",
"description": "This way is tagged as highway=(\\w+)_link but doesn't have a connection to any other \\1 or \\1_link",
"regex": true
},
"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": true
},
"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": true
},
"370": {
"title": "doubled places",
"severity": "error",
"description": "This node has tags in common with the surrounding way #(\\d+) ((?:\\(including the name '.+'\\) )?)and seems to be redundand",
"IDs": ["w"],
"regex": true
},
"380": {
"title": "non-physical use of sport-tag",
"severity": "error",
"description": "This way is tagged sport=(\\w+) but has no physical tag like e.g. leisure, building, amenity or highway",
"regex": true
},
"390": {
"title": "missing tracktype",
"severity": "warning",
"description": "This track doesn''t have a tracktype"
},
"400": {
"title": "geometry glitches",
"severity": "error",
"description": ""
},
"401": {
"title": "missing turn restriction",
"severity": "error",
"description": "ways (\\d+) and (\\d+) join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning( from way (\\1|\\2) to (\\1|\\2))?",
"IDs": ["w", "w", "w", "w"],
"regex": true
},
"402": {
"title": "impossible angles",
"severity": "error",
"description": "this way bends in a very sharp angle here"
},
"410": {
"title": "website",
"severity": "error",
"description": "Web pages are analyzed. Web page is defined by any of the following tags website=* url=* website:mobile=* contact:website=* contact:url=* image=* source:website=* or source:url=*"
},
"411": {
"title": "http error",
"severity": "error",
"description": "The URL \\(<a target=_blank href=(.+)>\\1</a>\\) cannot be opened \\(HTTP status code (\\d+)\\)",
"regex": true
},
"412": {
"title": "domain hijacking",
"severity": "error",
"description": "Possible domain squatting: <a target=_blank href=(.+)>\\1</a>\\. Suspicious text is: ''(.+)''",
"regex": true
},
"413": {
"title": "non-match",
"severity": "error",
"description": "Content of the URL (<a target=_blank href=(.+)>\\1</a>) did not contain these keywords: \\((.+)\\)",
"regex": true
} }
} }
}
+251 -340
View File
@@ -806,349 +806,260 @@
"entities": { "entities": {
"node": "Node {id}", "node": "Node {id}",
"way": "Way {id}", "way": "Way {id}",
"relation": "Relation {id}", "relation": "Relation {id}"
"highway": "Highway {id}",
"cycleway": "Cycleway {id}",
"waterway": "Waterway {id}",
"riverbank": "Riverbank {id}"
}, },
"errorTypes": { "errorTypes": {
"errors": { "20": {
"_30": { "title": "Multiple nodes on the same spot",
"title": "non-closed_areas", "description": "There is more than one node in this spot. Node IDs: {0}."
"description": "This way is tagged with {var1}={var2} and should be closed-loop."
},
"_40": {
"title": "dead-ended one-ways",
"description": "The first node (id {var1}) of this one-way is not connected to any other way."
},
"_41": {
"title": "",
"description": "The last node (id {var1}) of this one-way is not connected to any other way."
},
"_42": {
"title": "",
"description": "This node cannot be reached because one-ways only lead away from here."
},
"_43": {
"title": "",
"description": "You cannot escape from this node because one-ways only lead to here."
},
"_50": {
"title": "almost-junctions",
"description": "This node is very close but not connected to way #{var1}."
},
"_70": {
"title": "missing tags",
"description": "This {var1} has an empty tag: \"{var2}\"."
},
"_71": {
"title": "way without tags",
"description": "This way has no tags."
},
"_72": {
"title": "node without tags",
"description": "This node is not member of any way and doesn't have any tags."
},
"_73": {
"title": "tracktype with no highway tag",
"description": "This way has a \"tracktype\" tag but no \"highway\" tag."
},
"_74": {
"title": "empty tag",
"description": "This {var1} has an empty tag: \"{var2}\"."
},
"_75": {
"title": "name without tags",
"description": "This {var1} has a name (\"{var2}\") but no other tags."
},
"_90": {
"title": "motorways without ref",
"description": "This way is tagged as motorway and therefore needs a ref nat_ref or int_ref tag."
},
"_100": {
"title": "places of worship without religion",
"description": "This {var1} is tagged as place of worship and therefore needs a religion tag."
},
"_110": {
"title": "point of interest without name",
"description": "This node is tagged as {var1} and therefore needs a name tag."
},
"_120": {
"title": "ways without nodes",
"description": "This way has just one single node."
},
"_130": {
"title": "floating islands",
"description": "This way is not connected to the rest of the map."
},
"_150": {
"title": "railway crossing without tag",
"description": "This crossing of a highway and a railway needs to be tagged as railway=crossing or railway=level_crossing."
},
"_160": {
"title": "wrongly used railway tag",
"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."
},
"_170": {
"title": "FIXME tagged items",
"description": "{var1}"
},
"_180": {
"title": "relations without type",
"description": "This relation has no type tag which is mandatory for relations."
},
"_190": {
"title": "intersections without junctions",
"description": "Finds way crossings on same layer without common node as a junction."
},
"_191": {
"title": "highway-highway",
"description": "This {var1} intersects the {var2} #{var3} but there is no junction node."
},
"_192": {
"title": "highway-waterway",
"description": "This {var1} intersects the {var2} #{var3}."
},
"_193": {
"title": "highway-riverbank",
"description": "This {var1} intersects the {var2} #{var3}."
},
"_194": {
"title": "waterway-waterway",
"description": "This {var1} intersects the {var2} #{var3} but there is no junction node."
},
"_195": {
"title": "cycleway-cycleway",
"description": "This {var1} intersects the {var2} #{var3} but there is no junction node."
},
"_196": {
"title": "highway-cycleway",
"description": "This {var1} intersects the {var2} #{var3} but there is no junction node."
},
"_197": {
"title": "cycleway-waterway",
"description": "This {var1} intersects the {var2} #{var3}."
},
"_198": {
"title": "cycleway-riverbank",
"description": "This {var1} intersects the {var2} #{var3}."
},
"_200": {
"title": "overlapping ways",
"description": "Finds overlapping ways on same layer."
},
"_201": {
"title": "highway-highway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_202": {
"title": "highway-waterway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_203": {
"title": "highway-riverbank",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_204": {
"title": "waterway-waterway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_205": {
"title": "cycleway-cycleway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_206": {
"title": "highway-cycleway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_207": {
"title": "cycleway-waterway",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_208": {
"title": "cycleway-riverbank",
"description": "This {var1} overlaps the {var2} #{var3}."
},
"_210": {
"title": "loopings",
"description": "These errors contain self intersecting ways."
},
"_211": {
"title": "",
"description": "This way contains more than one node multiple times. Nodes are {var1}. This may or may not be an error."
},
"_212": {
"title": "",
"description": "This way has only two different nodes and contains one of them more than once."
},
"_220": {
"title": "misspelled tags",
"description": "This {var1} is tagged \"{var2}\"=\"{var3}\" where \"{var4}\" looks like \"{var5}\"."
},
"_221": {
"title": "",
"description": "This {var1} has a tag with key \"key\"=\"{var2}\"."
},
"_230": {
"title": "layer conflicts",
"description": ""
},
"_231": {
"title": "mixed layers intersection",
"description": "This node is a junction of ways on different layers: {var1}."
},
"_232": {
"title": "strange layers",
"description": "This {var1} is tagged with layer {var2}. This need not be an error but it looks strange."
},
"_270": {
"title": "motorways connected directly",
"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."
},
"_280": {
"title": "boundaries",
"description": ""
},
"_281": {
"title": "missing name",
"description": "This boundary has no name."
},
"_282": {
"title": "missing admin level",
"description": "The boundary of {var1} has no valid numeric admin_level. Please do not use admin levels like for example 6;7. Always tag the lowest admin_level of all boundaries."
},
"_283": {
"title": "no closed loop",
"description": "The boundary of {var1} is not closed-loop."
},
"_284": {
"title": "splitting boundary",
"description": "The boundary of {var1} splits here."
},
"_285": {
"title": "admin_level too high",
"description": "This boundary-way has admin_level {var1} but belongs to a relation with lower admin_level (higher priority); it should have the lowest admin_level of all relations."
},
"_290": {
"title": "restrictions",
"description": "Analyses all relations tagged type=restriction or following variations type=restriction:hgv type=restriction:caravan type=restriction:motorcar type=restriction:bus type=restriction:agricultural type=restriction:motorcycle type=restriction:bicycle and type=restriction:hazmat."
},
"_291": {
"title": "missing type",
"description": "This turn-restriction has no known restriction type."
},
"_292": {
"title": "missing from way",
"description": "A turn-restriction needs exactly one \"from\" member. This one has {var1}."
},
"_293": {
"title": "missing to way",
"description": "A turn-restriction needs exactly one \"to\" member. This one has {var1}."
},
"_294": {
"title": "from or to not a way",
"description": "\"from\" and \"to\" members of turn restrictions need to be ways. {var1}."
},
"_295": {
"title": "via is not on the way ends",
"description": "\"via\" (node #{var1}) is not the first or the last member of \"from\" (way #{var2})."
},
"_296": {
"title": "wrong restriction angle",
"description": "restriction type is {var1} but angle is {var2} degrees. Maybe the restriction type is not appropriate?"
},
"_297": {
"title": "wrong direction of to member",
"description": "wrong direction of to way {var1}."
},
"_298": {
"title": "already restricted by oneway",
"description": "entry already prohibited by oneway tag on {var1}."
},
"_310": {
"title": "roundabouts",
"description": "Analyses ways with tag junction=roundabout. More then one way can form a roundabout. It supports tag oneway=-1."
},
"_311": {
"title": "not closed loop",
"description": "This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout)."
},
"_312": {
"title": "wrong direction",
"description": "If this {var1} is in a country with {var2}-hand traffic then its orientation goes the wrong way around"
},
"_313": {
"title": "faintly connected",
"description": "This roundabout has only {var1} other road(s) connected. Roundabouts typically have 3 or more."
},
"_320": {
"title": "*_link connections",
"description": "This way is tagged as highway={var1}_link but doesn't have a connection to any other {var1} or {var1}_link."
},
"_350": {
"title": "bridge-tags",
"description": "This bridge doesn't have a tag in common with its surrounding ways that shows the purpose of this bridge. There should be one of these tags: {var1}."
},
"_370": {
"title": "doubled places",
"description": "This node has tags in common with the surrounding way #{var1} {var2}and seems to be redundant."
},
"_380": {
"title": "non-physical use of sport-tag",
"description": "This way is tagged \"sport\"=\"{var1}\" but has no physical tag like e.g. leisure, building, amenity or highway."
},
"_400": {
"title": "geometry glitches",
"description": ""
},
"_401": {
"title": "missing turn restriction",
"description": "ways {var1} and {var2} join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning from way {var3} to {var4}.",
"addition": " from way {var3} to {var4}."
},
"_402": {
"title": "impossible angles",
"description": "this way bends in a very sharp angle here."
},
"_410": {
"title": "website",
"description": "Web pages are analyzed. Web page is defined by any of the following tags website=* url=* website:mobile=* contact:website=* contact:url=* image=* source:website=* or source:url=*."
},
"_411": {
"title": "http error",
"description": "The URL cannot be opened (HTTP status code {var2})."
},
"_412": {
"title": "domain hijacking",
"description": "Possible domain squatting: The URL has Suspicious text: \"{var2}\"."
},
"_413": {
"title": "non-match",
"description": "Content of the URL did not contain these keywords: ({var2})."
}
}, },
"warnings": { "30": {
"_20": { "title": "Non-closed areas",
"title": "multiple nodes on the same spot", "description": "This way is tagged with \"{0}={1}\" and should be a closed loop."
"description": "There is more than one node in this spot. Offending node IDs: {var1}." },
}, "40": {
"_60": { "title": "Impossible oneways",
"title": "depreciated tags", "description": "The first node ({0}) of this oneway is not connected to any other way."
"description": "This {var1} uses deprecated tag \"{var2}\"=\"{var3}\". Please use {var4} instead!" },
}, "41": {
"_300": { "description": "The last node ({0}) of this oneway is not connected to any other way."
"title": "missing maxspeed", },
"description": "missing maxspeed tag." "42": {
}, "description": "You cannot reach this node because all ways leading from it are oneway."
"_360": { },
"title": "language unknown", "43": {
"description": "It would be nice if this {var1} had an additional tag \"name:XX\"=\"{var2}\" where XX shows the language of its name \"{var2}\"." "description": "You cannot escape from this node because all ways leading to it are oneway."
}, },
"_390": { "50": {
"title": "missing tracktype", "title": "Almost-junctions",
"description": "This track doesn't have a tracktype." "description": "This node is very close but not connected to way {0}."
} },
"60": {
"title": "Deprecated tags",
"description": "This {0} uses deprecated tag \"{1}={2}\". Please use \"{3}\" instead."
},
"70": {
"title": "Missing tags",
"description": "This {0} has an empty tag: \"{1}\"."
},
"71": {
"description": "This way has no tags."
},
"72": {
"description": "This node is not member of any way and doesn't have any tags."
},
"73": {
"description": "This way has a \"tracktype\" tag but no \"highway\" tag."
},
"74": {
"description": "This {0} has an empty tag: \"{1}\"."
},
"75": {
"description": "This {0} has a name \"{1}\" but no other tags."
},
"90": {
"title": "Motorway without ref tag",
"description": "This way is tagged as motorway and therefore needs a \"ref\", \"nat_ref\", or \"int_ref\" tag."
},
"100": {
"title": "Place of worship without religion",
"description": "This {0} is tagged as place of worship and therefore needs a \"religion\" tag."
},
"110": {
"title": "Point of interest without name",
"description": "This node is tagged as {0} and therefore needs a name tag."
},
"120": {
"title": "Way without nodes",
"description": "This way has just one single node."
},
"130": {
"title": "Disconnected way",
"description": "This way is not connected to the rest of the map."
},
"150": {
"title": "Railway crossing without tag",
"description": "This crossing of a highway and a railway needs to be tagged as \"railway=crossing\" or \"railway=level_crossing\"."
},
"160": {
"title": "Wrongly used railway tag",
"description": "There are ways in different layers (e.g. tunnel or bridge) meeting at this railway crossing."
},
"170": {
"title": "FIXME tagged items",
"description": "{0}"
},
"180": {
"title": "Relation without type",
"description": "This relation is missing a \"type\" tag."
},
"190": {
"title": "Intersection without junctions",
"description": "This {0} intersects the {1} {2} but there is no junction node."
},
"200": {
"title": "Overlapping ways",
"description": "This {0} overlaps the {1} {2}."
},
"210": {
"title": "Self-intersecting ways",
"description": "These errors contain self intersecting ways."
},
"211": {
"description": "This way contains more than one node multiple times. Nodes are {0}. This may or may not be an error."
},
"212": {
"description": "This way has only two different nodes and contains one of them more than once."
},
"220": {
"title": "Misspelled tag",
"description": "This {0} is tagged \"{1}={2}\" where \"{3}\" looks like \"{4}\"."
},
"221": {
"description": "This {0} has a tag with key \"{1}\"."
},
"230": {
"title": "Layer Conflict",
"description": "This node is a junction of ways on different layers."
},
"231": {
"description": "This node is a junction of ways on different layers: {0}."
},
"232": {
"description": "This {0} is tagged with \"layer={1}\". This need not be an error but it looks strange."
},
"270": {
"title": "Unusual motorway connection",
"description": "This node is a junction of a motorway and a highway other than \"motorway\", \"motorway_link\", \"trunk\", \"rest_area\", or \"construction\". Connection to \"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\"."
},
"280": {
"title": "Boundary issue",
"description": "There is an unspecified issue with this boundary."
},
"281": {
"title": "Boundary missing name",
"description": "This boundary has no name."
},
"282": {
"title": "Boundary missing admin level",
"description": "The boundary of {0} has no valid numeric admin_level. Please do not mix admin levels (e.g. \"6;7\"). Always tag the lowest admin_level of all boundaries."
},
"283": {
"title": "Boundary not a closed loop",
"description": "The boundary of {0} is not a closed loop."
},
"284": {
"title": "Boundary is split",
"description": "The boundary of {0} splits here."
},
"285": {
"title": "Boundary admin_level too high",
"description": "This boundary way has \"admin_level={0}\" but belongs to a relation with lower \"admin_level\" (e.g. higher priority); it should have the lowest \"admin_level\" of all relations."
},
"290": {
"title": "Restriction issue",
"description": "There is an unspecified issue with this restriction."
},
"291": {
"title": "Restriction missing type",
"description": "This turn restriction has no known restriction type."
},
"292": {
"title": "Restriction missing \"from\" way",
"description": "A turn restriction needs exactly one \"from\" member. This one has {0}."
},
"293": {
"title": "Restriction missing \"to\" way",
"description": "A turn restriction needs exactly one \"to\" member. This one has {0}."
},
"294": {
"title": "Restriction \"from\" or \"to\" is not a way",
"description": "\"from\" and \"to\" members of turn restrictions need to be ways. {0}."
},
"295": {
"title": "Restriction \"via\" is not on the way ends",
"description": "\"via\" (node #{0}) is not the first or the last member of \"from\" (way #{1})."
},
"296": {
"title": "Wrong restriction angle",
"description": "Restriction type is \"{0}\" but angle is {1} degrees. Maybe the restriction type is not appropriate?"
},
"297": {
"title": "Wrong direction of to member",
"description": "Wrong direction of \"to\" way {0}."
},
"298": {
"title": "Redundant restriction - oneway",
"description": "Entry already prohibited by \"oneway\" tag on {0}."
},
"300": {
"title": "Missing maxspeed",
"description": "Missing maxspeed tag."
},
"310": {
"title": "Roundabout issue",
"description": "There is an unspecified issue with this roundabout."
},
"311": {
"title": "Roundabout not closed loop",
"description": "This way is part of a roundabout but is not closed-loop. (split carriageways approaching a roundabout should not be tagged as roundabout)."
},
"312": {
"title": "Roundabout wrong direction",
"description": "If this {0} is in a country with {1}-hand traffic then its orientation goes the wrong way around"
},
"313": {
"title": "Roundabout weakly connected",
"description": "This roundabout has only {0} other road(s) connected. Roundabouts typically have 3 or more."
},
"320": {
"title": "Improper link connection",
"description": "This way is tagged as \"highway={0}_link\" but doesn't have a connection to any other \"{1}\" or \"{2}_link\"."
},
"350": {
"title": "Improper bridge tags",
"description": "This bridge doesn't have a tag in common with its surrounding ways that shows the purpose of this bridge. There should be one of these tags: {0}."
},
"360": {
"title": "Language unknown",
"description": "It would be nice if this {0} had an additional tag \"name:XX\"=\"{1}\" where XX shows the language of its name \"{1}\"."
},
"370": {
"title": "Doubled places",
"description": "This node has tags in common with the surrounding way #{0} {1} and seems to be redundant."
},
"380": {
"title": "Non-physical use of sport tag",
"description": "This way is tagged \"sport={0}\" but has no physical tag (e.g. \"leisure\", \"building\", \"amenity\", or \"highway\"."
},
"390": {
"title": "Missing tracktype",
"description": "This track doesn't have a \"tracktype\" tag."
},
"400": {
"title": "Geometry issue",
"description": "There is an unspecified issue with the geometry here."
},
"401": {
"title": "Missing turn restriction",
"description": "Ways {0} and {1} join in a very sharp angle here and there is no oneway tag or turn restriction that prevents turning from way {2} to {3}."
},
"402": {
"title": "Impossible angles",
"description": "This way bends in a very sharp angle here."
},
"410": {
"title": "Website issue",
"description": "There is an unspecified issue with a contact website or URL."
},
"411": {
"description": "The URL cannot be opened (HTTP status code {0})."
},
"412": {
"description": "Possible domain squatting: The URL has suspicious text: \"{0}\"."
},
"413": {
"description": "Possible non-match. Content of the URL did not contain these keywords: ({0})."
} }
} }
} }
+23 -31
View File
@@ -23,7 +23,13 @@ var dispatch = d3_dispatch('loaded');
var _krCache; var _krCache;
var _krZoom = 14; var _krZoom = 14;
var apibase = 'https://www.keepright.at/'; var apibase = 'https://www.keepright.at/';
var defaultRuleset = [0,30,40,50,70,90,100,110,120,130,150,160,170,180,191,192,193,194,195,196,197,198,201,202,203,204,205,206,207,208,210,220,231,232,270,281,282,283,284,285,291,292,293,294,295,296,297,298,311,312,313,320,350,370,380,401,402,411,412,413]; var defaultRuleset = [
0, 30, 40, 50, 70, 90, 100, 110, 120, 130, 150, 160, 170, 180,
191, 192, 193, 194, 195, 196, 197, 198, 201, 202, 203, 204, 205,
206, 207, 208, 210, 220, 231, 232, 270, 281, 282, 283, 284, 285,
291, 292 ,293, 294, 295, 296, 297, 298, 311, 312, 313, 320, 350,
370, 380, 401, 402, 411, 412, 413
];
function abortRequest(i) { function abortRequest(i) {
@@ -62,45 +68,34 @@ function updateRtree(item, replace) {
} }
function tokenReplacements(datum) { function tokenReplacements(d) {
if (!(datum instanceof krError)) return; if (!(d instanceof krError)) return;
var replacements = {}; var replacements = {};
var html_re = new RegExp(/<\/[a-z][\s\S]*>/); var html_re = new RegExp(/<\/[a-z][\s\S]*>/);
var commonEntities = ['node', 'way', 'relation', 'highway', 'cycleway', 'waterway', 'riverbank'];
var errorType; var errorTemplate = errorTypes[d.error_type];
var errorTemplate;
var errorDescription;
var errorRegex;
var errorMatch;
// find the matching template from the error schema
errorType = '_' + datum.error_type;
errorTemplate = errorTypes.errors[errorType] || errorTypes.warnings[errorType];
if (!errorTemplate) return; if (!errorTemplate) return;
// some descriptions are just fixed text // some descriptions are just fixed text
if (!('regex' in errorTemplate)) return; if (!errorTemplate.regex) return;
// regex pattern should match description with variable details captured as groups // regex pattern should match description with variable details captured as groups
errorDescription = datum.description; var errorDescription = d.description;
errorRegex = new RegExp(errorTemplate.description); var errorRegex = new RegExp(errorTemplate.description);
errorMatch = errorRegex.exec(errorDescription); var errorMatch = errorRegex.exec(errorDescription);
if (!errorMatch) { if (!errorMatch) {
// TODO: Remove, for regex dev testing // TODO: Remove, for regex dev testing
console.log('Unmatched:', errorType, errorDescription, errorRegex); console.log('Unmatched:', d.error_type, d.description, errorRegex);
return; return;
} }
errorMatch.forEach(function(group, index) { for (var i = 1; i < errorMatch.length; i++) { // skip first
var group = errorMatch[i];
var idType; var idType;
// index 0 is the whole match, skip it
if (!index) return;
// link IDs if present in the group // link IDs if present in the group
idType = 'IDs' in errorTemplate ? errorTemplate.IDs[index-1] : ''; idType = 'IDs' in errorTemplate ? errorTemplate.IDs[i-1] : '';
if (idType && group) { if (idType && group) {
group = parseError(group, idType); group = parseError(group, idType);
} else if (html_re.test(group)) { } else if (html_re.test(group)) {
@@ -108,13 +103,8 @@ function tokenReplacements(datum) {
group = '\\' + group + '\\'; group = '\\' + group + '\\';
} }
// translate common words (e.g. node, way, relation) replacements[i-1] = group;
if (commonEntities.includes(group)) { }
group = t('QA.keepRight.entities.' + group);
}
replacements['var' + index] = group;
});
return replacements; return replacements;
} }
@@ -122,7 +112,9 @@ function tokenReplacements(datum) {
function parseError(group, idType) { function parseError(group, idType) {
function fillPlaceholder(d) { return '<span><a class="kr_error_description-id">' + d + '</a></span>'; } function fillPlaceholder(d) {
return '<span><a class="kr_error_description-id">' + d + '</a></span>';
}
// arbitrary node list of form: #ID, #ID, #ID... // arbitrary node list of form: #ID, #ID, #ID...
function parseError211(list) { function parseError211(list) {
+32 -53
View File
@@ -5,43 +5,22 @@ import { t } from '../util/locale';
export function uiKeepRightDetails(context) { export function uiKeepRightDetails(context) {
var stringBase = 'QA.keepRight.errorTypes.';
var _error; var _error;
var _template;
var _templateErrorType;
var _category;
var _categoryElements;
var _parent_error_type;
var _titleBase;
function initDetails() {
_parent_error_type = '';
if (errorTypes.errors['_' + _error.error_type]) {
_templateErrorType = '_' + _error.error_type;
_template = errorTypes.errors[_templateErrorType];
_category = 'errors';
} else if (errorTypes.warnings[_templateErrorType]) {
_template = errorTypes.warnings[_templateErrorType];
_category = 'warnings';
} else { return; }
// if there is a parent, save it's error type
_categoryElements = errorTypes[_category];
var base_error_type = (Math.round(_error.error_type / 10) * 10).toString();
if ((_categoryElements['_' + base_error_type]) && (base_error_type !== _error.error_type) ) {
_parent_error_type = '_' + base_error_type;
}
_titleBase = 'QA.keepRight.errorTypes.' + _category + '.';
}
function keepRightDetails(selection) { function keepRightDetails(selection) {
if (!_error || !_error.error_type) return; if (!_error) return;
initDetails(); var errorType = _error.error_type;
if (!_template) return; var template = errorTypes[errorType];
if (!template) return;
// if there is a parent, save its error type e.g.:
// Error 191 = "highway-highway"
// Error 190 = "intersections without junctions" (parent)
var parentErrorType = (Math.floor(errorType / 10) * 10).toString();
var parentTemplate = errorTypes[parentErrorType];
if (!parentTemplate) return;
var details = selection.selectAll('.kr_error-details') var details = selection.selectAll('.kr_error-details')
@@ -57,30 +36,24 @@ export function uiKeepRightDetails(context) {
.append('div') .append('div')
.attr('class', 'kr_error-details kr_error-details-container'); .attr('class', 'kr_error-details kr_error-details-container');
var titleEnter = detailsEnter
// title
var title = detailsEnter
.append('div') .append('div')
.attr('class', 'kr_error-details-title'); .attr('class', 'kr_error-details-title');
title.append('h4') titleEnter
.append('h4')
.text(function() { return t('QA.keepRight.detail_title'); }); .text(function() { return t('QA.keepRight.detail_title'); });
title.append('div') titleEnter
.append('div')
.text(function() { .text(function() {
var title = ''; var result;
try {
// if this is a subtype, append it's parent title result = t(stringBase + errorType + '.title');
if (_parent_error_type) { } catch (e) {
title = t(_titleBase + _parent_error_type + '.title') + ': \n'; result = t(stringBase + parentErrorType + '.title');
} }
return result;
// append title
if (_error.error_type) {
title += t(_titleBase + _templateErrorType + '.title');
}
return title;
}); });
@@ -97,17 +70,23 @@ export function uiKeepRightDetails(context) {
.append('div') .append('div')
.attr('class', 'kr_error-details-description-text') .attr('class', 'kr_error-details-description-text')
.html(function(d) { .html(function(d) {
return t(_titleBase + _templateErrorType + '.description', d.replacements); var result;
try {
result = t(stringBase + errorType + '.description', d.replacements);
} catch (e) {
result = t(stringBase + parentErrorType + '.description');
}
return result;
}); });
description.selectAll('.kr_error_description-id') description.selectAll('.kr_error_description-id')
.on('click', function() { clickLink(context, this.text); }); .on('click', function() { clickLink(context, this.text); });
function clickLink(context, id) { function clickLink(context, entityID) {
d3_event.preventDefault(); d3_event.preventDefault();
context.layers().layer('osm').enabled(true); context.layers().layer('osm').enabled(true);
context.zoomToEntity(id); context.zoomToEntity(entityID);
} }
} }