This is a telegram bot, which allows you to inspect the current geohash in your coordinate sector. However, currently only inline queries are supported. Instead of messaging the bot (or adding it to a group), you should mention the bot in a conversation by typing @GeohashingBot <latitude prefix> <longitude prefix>
into the chat window, with <latitude prefix>
representing the pre-commas of your latitude and <longitude prefix>
representing the pre-commas of your longitude. The bot will then guess your timezone and current date based on your location and calculate the geohash (taking into account the 30W Time Zone Rule).
If you want to host the bot yourself, you need to install some dependencies first. Obviously, you need python3
and pip
, what you probably already have installed. Then install pipenv
by typing
pip install pipenv
pipenv
will handle all dependencies and virtual python environments. Now type
pipenv install
to finish the installation.
cp config.py.default config.py
Then add your own bot token to the config.py
file.
pipenv shell
python bot.py
The bot’s implementation of the geohashing algorithm is based on the reference implementation from the geohashing wiki.