ST_GEOGPOINTFROMGEOHASH¶
Returns a GEOGRAPHY object for the Point that represents the center of a geohash.
- こちらもご参照ください。
構文¶
ST_GEOGPOINTFROMGEOHASH( <geohash> )
引数¶
geohash
引数はgeohashでなければなりません。
戻り値¶
The function returns a value of type GEOGRAPHY that represents the Point that is the center of the geohash.
例¶
次の例では、geohashの中心にあるポイントの GEOGRAPHY オブジェクトを返します。
SELECT ST_GEOGPOINTFROMGEOHASH('9q9j8ue2v71y5zzy0s4q') AS geography_center_point_of_geohash; +-----------------------------------+ | GEOGRAPHY_CENTER_POINT_OF_GEOHASH | |-----------------------------------| | { | | "coordinates": [ | | -1.223060999999999e+02, | | 3.755416200000003e+01 | | ], | | "type": "Point" | | } | +-----------------------------------+