0

For an application that needs to store Geographical location of a person in the form of Geohash, how much hash length (in characters) would be enough?

The code located here (referred in Wikipedia article on Geohash) says:

    #define MAX_HASH_LENGTH 22

But they haven't mentioned any reason for that.

Atul
  • 3,778
  • 5
  • 47
  • 87

2 Answers2

0

Some justification can be found on other topics:

geohash-and-max-distance

geohash-string-length-and-accuracy

To localize a person, you would probably need a one-meter accuracy. 10 characters should be enough.

bmorin
  • 645
  • 5
  • 12
0

If you are looking at something like building or house locations (associated with a person) you could go as small as geohash of length 8.

A geohash with a string value of 8 characters gets you to within +/- 20 meters of a location, a geohash of 9 characters gets you with +/- 5 meters. See a full list of information on geohash lengths on wikipedia

abeusher
  • 351
  • 2
  • 4