How to store encrypted solutions of a find location game? I'm coding a bot on Telegram to sustain a quiz game.
A group of people (authors) can upload photos of streets or particular landscapes that they have found on internet, without any description, and have autonomously work out the exact location they were taken.
So along with one photo the author has to enter the cordinates with a tolerance.
The bot stores this info and anyone (other authors included) can try to solve that photo.
Haversine formula is used to calculate distance between an attempt and the solution. A distance less than the tolerance yields a correct answer.

Anybody but me can access the .txt file with all the solutions. Of course I'll be honest, but how can I ultimately prevent myself from look into this file and use the solutions?

Hash encryption won't work because, obviously, answers are not expected to match the stored coordinates. Any pair of coordinates close enough has to be accepted.
There is the idea of a fuzzy vault, a coding theory based idea first proposed by Juels,
developed for biometric applications, it warrants a look.

Start at Wikipedia. These notes below are excellent:

https://wiki.cse.buffalo.edu/cse545/content/fuzzy-vault