I'm new to geohashing and am looking to implement it in Google Cloud Datastore.
My goal is to store lat/long data in the form of a geohash and then query for all Entities around 400 meters from a given lat/long.
Has anyone done this successfully and efficiently?
There are some edge-cases with geohashing where you need to check neighboring cells but I want to avoid querying too many data points that I won't be using.
In the end, it sounds like I will need to calculate the distance between the given lat/long and all the entities returned to make sure they are x meters from the given lat/long.
This then poses another problem which is how can I implement a cursor with the result set?
These are some of the problems I have identified. If anyone has advice and tips or some code (in Java
) on how to do geohashing with Datastore I would greatly appreciate it! Thank you!