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
Powered by MarkLogic Server | Terms of Use | Privacy Policy