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