SDK Java v2.x

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

geohash #

Returns a valid geohash (opens new window) for the provided key's members (see geoadd).

[Redis documentation] (opens new window)

geohash(key, members, [options], callback) #

Arguments Type Description
key string Key identifier
members array List of geospatial points contained in the key
options JSON Object Optional parameters
callback function Callback

Options #

Option Type Description Default
queuable boolean Make this request queuable or not true

Callback Response #

Returns an array of geohashes, in the same order than the provided members list.

Usage #

Copied to clipboard!
String[] members = {"Palermo", "Catania"};
kuzzle.memoryStorage.geohash("key", members, new ResponseListener<String[]>() {
  public void onSuccess(String[] hashes) {
    // callback called once the action has completed
  public void onError(JSONObject error) {

Callback response:

Copied to clipboard!
["sqc8b49rny0", "sqdtr74hyu0"]