From c9e249ee6c66867572ebce6f85a7161912b6490d Mon Sep 17 00:00:00 2001 From: SilentSpike Date: Fri, 1 Feb 2019 23:07:26 +0000 Subject: [PATCH] Send only relevant query parameters --- modules/services/improveOSM.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/services/improveOSM.js b/modules/services/improveOSM.js index a0811b6d2..c84260eef 100644 --- a/modules/services/improveOSM.js +++ b/modules/services/improveOSM.js @@ -155,9 +155,7 @@ export default { loadErrors: function(projection) { var options = { client: 'iD', - confidenceLevel: 'C1', // most confident only, still have false positives status: 'OPEN', - type: 'PARKING,ROAD,BOTH,PATH', // exclude WATER as it doesn't seem useful zoom: '19' // Use a high zoom so that clusters aren't returned }; @@ -180,7 +178,10 @@ export default { var requests = {}; _forEach(_impOsmUrls, function(v, k) { - var url = v + '/search?' + utilQsString(params); + // We exclude WATER from missing geometry as it doesn't seem useful + // We use most confident one-way and turn restrictions only, still have false positives + var kParams = _extend({}, params, (k === 'mr') ? { type: 'PARKING,ROAD,BOTH,PATH' } : { confidenceLevel: 'C1' }); + var url = v + '/search?' + utilQsString(kParams); requests[k] = d3_json(url, function(err, data) { @@ -430,4 +431,4 @@ export default { delete _erCache.data[error.id]; updateRtree(encodeErrorRtree(error), false); // false = remove } -}; +}; \ No newline at end of file