// Using callbacks (NodeJS or Web Browser)
kuzzle.memoryStorage.geohash('key', ['Palermo', 'Catania'], function (err, hashes) {
  // callback called once the action has completed

// Using promises (NodeJS only)
kuzzle.memoryStorage.geohashPromise('key', ['Palermo', 'Catania'])
  .then(hashes => {
    // resolved once the action has completed
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) {

use \Kuzzle\Kuzzle;

$kuzzle = new Kuzzle('localhost');

try {
  $hashes = $kuzzle->memoryStorage()->geohash('key', ['Palermo', 'Catania']);
catch (ErrorException $e) {


Callback response:

["sqc8b49rny0", "sqdtr74hyu0"]

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

[Redis documentation]

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

keystringKey identifier
membersarrayList of geospatial points contained in the key
optionsJSON ObjectOptional parameters


queuablebooleanMark this request as (not) queuabletrue

Callback response

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