Loading TOC...

MarkLogic 12 EA 2 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

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