Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ElasticSearch geo_distance query
{
"query": {
"filtered": {
"query": {
"term" : { "amenity" : "restaurant" }
},
"filter": {
"geo_distance": {
"distance": "0.3km",
"location": {
"lat": "48.231249",
"lon": "2.30998"
},
"distance_type": "plane"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment