Browse Source

updated reverse boundary radius tests to lower value

pull/904/head
Stephen Hess 8 years ago
parent
commit
b5c6c403cb
  1. 2
      test/unit/fixture/reverse_null_island.js
  2. 2
      test/unit/fixture/reverse_standard.js
  3. 2
      test/unit/fixture/reverse_with_boundary_country.js
  4. 2
      test/unit/fixture/reverse_with_layer_filtering.js
  5. 2
      test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js
  6. 2
      test/unit/fixture/reverse_with_source_filtering.js
  7. 14
      test/unit/query/reverse.js

2
test/unit/fixture/reverse_null_island.js

@ -5,7 +5,7 @@ module.exports = {
'bool': {
'filter': [{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

2
test/unit/fixture/reverse_standard.js

@ -5,7 +5,7 @@ module.exports = {
'bool': {
'filter': [{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

2
test/unit/fixture/reverse_with_boundary_country.js

@ -15,7 +15,7 @@ module.exports = {
],
'filter': [{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

2
test/unit/fixture/reverse_with_layer_filtering.js

@ -6,7 +6,7 @@ module.exports = {
'filter': [
{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

2
test/unit/fixture/reverse_with_layer_filtering_non_coarse_subset.js

@ -6,7 +6,7 @@ module.exports = {
'filter': [
{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

2
test/unit/fixture/reverse_with_source_filtering.js

@ -6,7 +6,7 @@ module.exports = {
'filter': [
{
'geo_distance': {
'distance': '500km',
'distance': '3km',
'distance_type': 'plane',
'optimize_bbox': 'indexed',
'center_point': {

14
test/unit/query/reverse.js

@ -16,7 +16,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 29.49136,
'boundary.circle.lon': -82.50622,
'boundary.circle.radius': 500
'boundary.circle.radius': 3
});
var compiled = JSON.parse( JSON.stringify( query ) );
@ -33,7 +33,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': 0,
'boundary.circle.lat': 0,
'boundary.circle.lon': 0,
'boundary.circle.radius': 500
'boundary.circle.radius': 3
});
var compiled = JSON.parse( JSON.stringify( query ) );
@ -67,7 +67,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 111,
'boundary.circle.lon': 333,
'boundary.circle.radius': 500
'boundary.circle.radius': 3
};
var query = generate(clean);
var compiled = JSON.parse( JSON.stringify( query ) );
@ -102,7 +102,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 29.49136,
'boundary.circle.lon': -82.50622,
'boundary.circle.radius': 500,
'boundary.circle.radius': 3,
'boundary.country': 'ABC'
});
@ -120,7 +120,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 29.49136,
'boundary.circle.lon': -82.50622,
'boundary.circle.radius': 500,
'boundary.circle.radius': 3,
'sources': ['test']
});
@ -138,7 +138,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 29.49136,
'boundary.circle.lon': -82.50622,
'boundary.circle.radius': 500,
'boundary.circle.radius': 3,
// only venue, address, and street layers should be retained
'layers': ['neighbourhood', 'venue', 'locality', 'address', 'region', 'street', 'country']
});
@ -158,7 +158,7 @@ module.exports.tests.query = function(test, common) {
'point.lon': -82.50622,
'boundary.circle.lat': 29.49136,
'boundary.circle.lon': -82.50622,
'boundary.circle.radius': 500,
'boundary.circle.radius': 3,
// only venue, address, and street layers should be retained
'layers': ['neighbourhood', 'venue', 'street', 'locality']
});

Loading…
Cancel
Save