1
0
mirror of https://github.com/django/django.git synced 2025-04-08 23:46:43 +00:00

[1.10.x] Documented GeoHash's precision parameter.

Backport of 0d18b065622d0a06929cd6ffd07b010964473430 from master
This commit is contained in:
Sergey Fedoseev 2016-08-11 02:32:08 +06:00 committed by Tim Graham
parent 3fff7d3abb
commit 7eefb39706

View File

@ -263,13 +263,16 @@ right-hand rule.
``GeoHash``
===========
.. class:: GeoHash(expression, **extra)
.. class:: GeoHash(expression, precision=None, **extra)
*Availability*: PostGIS, SpatiaLite (≥ 4.0, LWGEOM)
Accepts a single geographic field or expression and returns a `GeoHash`__
representation of the geometry.
The ``precision`` keyword argument controls the number of characters in the
result.
.. versionchanged:: 1.10
SpatiaLite support was added.