Loading TOC...

geo:geohash-subhashes

geo:geohash-subhashes(
   $hash as xs:string,
   [$which as xs:string?]
) as xs:string*

Summary

Given a geohash string, return the 32 subhashes.

Parameters
hash The geohash string, as produced from the function geo:geohash-encode.
which Which subhashes to return, one of "S","W","N","E","SW","SE","NW","NE" or "ALL". The default is "ALL".

See Also

Example

geo:geohash-subhashes("c3k6svq")

=> a sequence of the following strings:
   c3k6svq0 c3k6svq1 c3k6svq2 c3k6svq3 c3k6svq4 c3k6svq5
   c3k6svq6 c3k6svq7 c3k6svq8 c3k6svq9 c3k6svqb c3k6svqc
   c3k6svqd c3k6svqe c3k6svqf c3k6svqg c3k6svqh c3k6svqj
   c3k6svqk c3k6svqm c3k6svqn c3k6svqp c3k6svqq c3k6svqr
   c3k6svqs c3k6svqt c3k6svqu c3k6svqv c3k6svqw c3k6svqx
   c3k6svqy c3k6svqz

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.