Last active
January 8, 2016 08:55
-
-
Save siddharthlatest/89ace6dbdc0667364b52 to your computer and use it in GitHub Desktop.
geolocation search query returned via data streams
This file contains hidden or 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
this.getDragData = function(lat, lng) { | |
return appbaseRef.search({ | |
type: 'city', | |
body: { | |
query: { | |
filter: { | |
geo_distance: { | |
distance: "2000km", | |
location: [lat, lng] | |
} | |
} | |
} | |
} | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment