http://en.wikipedia.org/wiki/Geohash
To summarize, mongodb computes a geohash from a coordinate pair in a
document and uses that quantity as key to identify the document.
Because of the way geohashes map pairs to scalars, wider and wider
segments of the B-tree correspond to larger and larger rectangles in the
coordinate space, but there aren't any meaningful "regions" stored in
the B-tree.
For your problem, can you describe the semantics a little more? What
are your geographical regions?
Regards,
Richard
> --
> You received this message because you are subscribed to the Google Groups "mo
> ngodb-user" group.
> To post to this group, send email to mongod...@googlegroups.com.
> To unsubscribe from this group, send email to mongodb-user+unsubscribe@google
> groups.com.
> For more options, visit this group at http://groups.google.com/group/mongodb-
> user?hl=en.
>
It sounds like your handle on what we do with geohashes is correct. We
don't expose the geohashing internals directly mostly because the the
rectangles defined by prefix/precision pairs don't really correspond to
anything meaningful in the world; they're just used for constraining
(and so, in common cases, speeding up) searches.
If you wanted to tag nested boxes in your space with attributes, I'd
suggest having a separate collection of box/attribute associations, and
to use that for describing the points in your application's display, if
that makes sense.
--
Richard