Created
June 26, 2014 11:19
-
-
Save missinglink/ce25f1f9f7554ff1010f to your computer and use it in GitHub Desktop.
Geo search for: -0.058202, 51.53254
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"query": { | |
"filtered": { | |
"query": { | |
"match_all": {} | |
}, | |
"filter": { | |
"bool" : { | |
"must" : [ | |
{ | |
"geo_shape": { | |
"boundaries": { | |
"relation": "intersects", | |
"shape": { | |
"type": "envelope", | |
"coordinates" : [ | |
[-180, 51.53255], | |
[180, 51.53253] | |
] | |
} | |
} | |
} | |
}, | |
{ | |
"geo_shape": { | |
"boundaries": { | |
"relation": "intersects", | |
"shape": { | |
"type": "envelope", | |
"coordinates" : [ | |
[-0.058201, 90], | |
[-0.058203, 0] | |
] | |
} | |
} | |
} | |
} | |
] | |
} | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment