Browse Source

fix(autocomplete focus.point): Use 50km scale parameter

The `scale` parameter controls how quickly scores decrease from the
maximum as the distance from the `center_point` to the record in
question increases.

Set this to 50km, which is the same as search.

Connects https://github.com/pelias/api/issues/1206
reset-focus-point-settings
Julian Simioni 6 years ago
parent
commit
b383d9ace1
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 2
      query/autocomplete_defaults.js
  2. 2
      test/unit/fixture/autocomplete_linguistic_focus.js
  3. 2
      test/unit/fixture/autocomplete_linguistic_focus_null_island.js

2
query/autocomplete_defaults.js

@ -28,7 +28,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'focus:function': 'exp',
'focus:offset': '0km',
'focus:scale': '250km',
'focus:scale': '50km',
'focus:decay': 0.5,
'focus:weight': 15,

2
test/unit/fixture/autocomplete_linguistic_focus.js

@ -39,7 +39,7 @@ module.exports = {
'lon': -82.50622
},
'offset': '0km',
'scale': '250km',
'scale': '50km',
'decay': 0.5
}
},

2
test/unit/fixture/autocomplete_linguistic_focus_null_island.js

@ -39,7 +39,7 @@ module.exports = {
'lon': 0
},
'offset': '0km',
'scale': '250km',
'scale': '50km',
'decay': 0.5
}
},

Loading…
Cancel
Save