Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bazo
Created March 12, 2013 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bazo/5143339 to your computer and use it in GitHub Desktop.
Save bazo/5143339 to your computer and use it in GitHub Desktop.
{
"location": {
"type": "Polygon",
"coordinates": [
[
48.122033990283,
17.036580815472
],
[
48.211966009717,
17.171419184528
],
[
48.354033990283,
17.518273902141
],
[
48.443966009717,
17.653726097859
]
]
}
}
{
"location": {
"type": "envelope",
"coordinates": [
[
-45,
45
],
[
45,
-45
]
]
}
}
{
"query": {
"filtered": {
"query": {
"match_all": []
},
"filter": {
"geo_shape": {
"location": {
"shape": {
"type": "envelope",
"coordinates": [
[
45,
17
],
[
49,
18
]
]
},
"relation": "intersects"
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment