I need to create a Geohash for a latitude, longitude in a cloud function I'm running on Firebase.
I don't need what I need to import and what best practice is.
At the moment this is what my index.js
looks like:
'use strict';
const _ = require('lodash');
const functions = require('firebase-functions');
const admin = require('firebase-admin');
admin.initializeApp();
exports.gameCreated = functions.database.ref('/games/{gameId}').onCreate((snap, context) => {
// This is where I need to create the geohash
});