Browse Source

Merge pull request #567 from pelias/focus_offset_minimum

Focus offset minimum
pull/571/head
Peter Johnson a.k.a. insertcoffee 9 years ago committed by GitHub
parent
commit
bc76674694
  1. 2
      query/reverse_defaults.js
  2. 2
      query/search_defaults.js
  3. 2
      test/unit/fixture/search_linguistic_focus.js
  4. 2
      test/unit/fixture/search_linguistic_focus_bbox.js
  5. 2
      test/unit/fixture/search_linguistic_focus_null_island.js
  6. 2
      test/unit/fixture/search_linguistic_viewport.js
  7. 2
      test/unit/fixture/search_linguistic_viewport_min_diagonal.js

2
query/reverse_defaults.js

@ -31,7 +31,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'phrase:slop': 2,
'focus:function': 'linear',
'focus:offset': '1km',
'focus:offset': '0km',
'focus:scale': '50km',
'focus:decay': 0.5,
'focus:weight': 2,

2
query/search_defaults.js

@ -30,7 +30,7 @@ module.exports = _.merge({}, peliasQuery.defaults, {
'phrase:slop': 2,
'focus:function': 'linear',
'focus:offset': '1km',
'focus:offset': '0km',
'focus:scale': '50km',
'focus:decay': 0.5,
'focus:weight': 2,

2
test/unit/fixture/search_linguistic_focus.js

@ -43,7 +43,7 @@ module.exports = {
'lat': 29.49136,
'lon': -82.50622
},
'offset': '1km',
'offset': '0km',
'scale': '50km',
'decay': 0.5
}

2
test/unit/fixture/search_linguistic_focus_bbox.js

@ -43,7 +43,7 @@ module.exports = {
'lat': 29.49136,
'lon': -82.50622
},
'offset': '1km',
'offset': '0km',
'scale': '50km',
'decay': 0.5
}

2
test/unit/fixture/search_linguistic_focus_null_island.js

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

2
test/unit/fixture/search_linguistic_viewport.js

@ -48,7 +48,7 @@ module.exports = {
'lat': 29.49136,
'lon': -82.50622
},
'offset': '1km',
'offset': '0km',
'scale': '50km',
'decay': 0.5
}

2
test/unit/fixture/search_linguistic_viewport_min_diagonal.js

@ -48,7 +48,7 @@ module.exports = {
'lat': 28.49136,
'lon': -87.50623
},
'offset': '1km',
'offset': '0km',
'scale': '1km',
'decay': 0.5
}

Loading…
Cancel
Save