MarkLogic 12 EA 1 Product Documentation
geo.geohashPrecisionDimensions

geo.geohashPrecisionDimensions(
   precision as Number
) as Sequence

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.geohashEncode.

See Also

Example

geo.geohashPrecisionDimensions(12)

=> 1.67638063430786E-7
   3.35276126861572E-7
Powered by MarkLogic Server | Terms of Use | Privacy Policy