diff --git a/query/search.js b/query/search.js index 4ccc9f6d..524db577 100644 --- a/query/search.js +++ b/query/search.js @@ -14,6 +14,7 @@ function generate( params ){ } var query = queries.distance( centroid, { size: params.size } ); + if (params.bbox) { query = queries.bbox ( centroid, { size: params.size, bbox: params.bbox } ); }