Loading TOC...

MarkLogic 12 EA 2 Product Documentation
geo:geohash-precision-dimensions

geo:geohash-precision-dimensions(
   $precision as xs:integer
) as xs:double+

Summary

Given a geohash string, return the height and width for the given precision. The result is a pair of double: the height (latitude span) followed by the width (longitude span).

Parameters
precision The precision. This should be a number between 0 and 12, as with geo:geohash-encode.

See Also

Example

geo:geohash-precision-dimensions(12)

=> 1.67638063430786E-7
   3.35276126861572E-7

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