Geohashing Algorithm

We can use user's longitude and latitude to determine the point of interest (POIs) around the user. Here are the steps:

  1. Get the users' long/lat

  2. Compute it's geohash

  3. Determine what prefix you want to use: The longer the prefix, the closer together the points

  4. Match prefix with geohashes of POIs

  5. Optimize count of POIs

    1. Reduce # of prefix match if you want more points

    2. Increase # of prefix match if you want less points