ST_PointFromGeoHash — Retourne un point à partir d'une chaîne GeoHash.
point ST_PointFromGeoHash(text geohash, integer precision=full_precision_of_geohash);
Retourne une point à partir d'une chaîne GeoHash. Le point représente le centre du GeoHash.
Si aucune precision n'est spécifiée, ST_PointFromGeoHash retourne une un point basé sur la précision complète de la chaîne GeoHash en entrée.
Si precision est spécifié, ST_PointFromGeoHash utilise autant de caractère du GeoHash pour créer le point.
Disponibilité : 2.1.0
SELECT ST_AsText(ST_PointFromGeoHash('9qqj7nmxncgyy4d0dbxqz0'));
st_astext
------------------------------
POINT(-115.172816 36.114646)
SELECT ST_AsText(ST_PointFromGeoHash('9qqj7nmxncgyy4d0dbxqz0', 4));
st_astext
-----------------------------------
POINT(-115.13671875 36.123046875)
SELECT ST_AsText(ST_PointFromGeoHash('9qqj7nmxncgyy4d0dbxqz0', 10));
st_astext
-------------------------------------------
POINT(-115.172815918922 36.1146435141563)