Skip to content

Commit

Permalink
Adjust matchScores so features match types other than barrier
Browse files Browse the repository at this point in the history
(closes #3647)

e.g. `office=* + barrier=wall` should match as an office not a wall
  • Loading branch information
bhousel committed Dec 13, 2016
1 parent 0f05df8 commit 4fa754e
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 12 deletions.
17 changes: 11 additions & 6 deletions data/presets/presets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2684,7 +2684,8 @@
"fields": [
"barrier"
],
"name": "Barrier"
"name": "Barrier",
"matchScore": 0.4
},
"barrier/entrance": {
"icon": "entrance",
Expand Down Expand Up @@ -2772,7 +2773,8 @@
"tags": {
"barrier": "ditch"
},
"name": "Trench"
"name": "Trench",
"matchScore": 0.25
},
"barrier/fence": {
"icon": "prison",
Expand All @@ -2786,7 +2788,8 @@
"tags": {
"barrier": "fence"
},
"name": "Fence"
"name": "Fence",
"matchScore": 0.25
},
"barrier/gate": {
"icon": "prison",
Expand Down Expand Up @@ -2814,7 +2817,8 @@
"tags": {
"barrier": "hedge"
},
"name": "Hedge"
"name": "Hedge",
"matchScore": 0.25
},
"barrier/kissing_gate": {
"icon": "prison",
Expand Down Expand Up @@ -2893,7 +2897,8 @@
"tags": {
"barrier": "wall"
},
"name": "Wall"
"name": "Wall",
"matchScore": 0.25
},
"boundary/administrative": {
"name": "Administrative Boundary",
Expand Down Expand Up @@ -2921,7 +2926,7 @@
"tags": {
"building": "*"
},
"matchScore": 0.4,
"matchScore": 0.6,
"terms": [],
"name": "Building"
},
Expand Down
3 changes: 2 additions & 1 deletion data/presets/presets/barrier.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@
"fields": [
"barrier"
],
"name": "Barrier"
"name": "Barrier",
"matchScore": 0.4
}
3 changes: 2 additions & 1 deletion data/presets/presets/barrier/ditch.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"tags": {
"barrier": "ditch"
},
"name": "Trench"
"name": "Trench",
"matchScore": 0.25
}
3 changes: 2 additions & 1 deletion data/presets/presets/barrier/fence.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"tags": {
"barrier": "fence"
},
"name": "Fence"
"name": "Fence",
"matchScore": 0.25
}
3 changes: 2 additions & 1 deletion data/presets/presets/barrier/hedge.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@
"tags": {
"barrier": "hedge"
},
"name": "Hedge"
"name": "Hedge",
"matchScore": 0.25
}
3 changes: 2 additions & 1 deletion data/presets/presets/barrier/wall.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@
"tags": {
"barrier": "wall"
},
"name": "Wall"
"name": "Wall",
"matchScore": 0.25
}
2 changes: 1 addition & 1 deletion data/presets/presets/building.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"tags": {
"building": "*"
},
"matchScore": 0.4,
"matchScore": 0.6,
"terms": [],
"name": "Building"
}

0 comments on commit 4fa754e

Please sign in to comment.