GeoPoint를 Geohash로 변환
| 항목 | 값 |
|---|---|
| 화면 이름 | Convert GeoPoint to Geohash |
| 식별자 | geoPointToGeohashV1 |
| 지원 실행 방식 | Batch, Faster, Streaming |
| 범주 | 지리공간 (Geospatial) |
| 반환 자료형 | Geohash |
지정한 정밀도로 GeoPoint를 포함하는 Base32 인코딩 Geohash를 만듭니다.
입력 인자
| 이름 | 지정 여부 | 자료형 | 의미와 조건 |
|---|---|---|---|
GeoPoint | 필수 | Expression<GeoPoint> | 변환할 GeoPoint입니다. |
Output Geohash precision | 필수 | Expression<Integer> | 출력 Geohash 문자열의 Base32 문자 수입니다. |
입출력 예시
예시 1: 기본 동작
인자 값:
GeoPoint:pointOutput Geohash precision: 5
| point | 출력 |
|---|---|
| { latitude: -20.0, longitude: 80.0, } | mu2yh |
| { latitude: -77.0599, longitude: 38.9031, } | hf79t |
| null | null |
예시 2: 기본 동작
인자 값:
GeoPoint:pointOutput Geohash precision:precision
| point | precision | 출력 |
|---|---|---|
| { latitude: -20.0, longitude: 80.0, } | 5 | mu2yh |
| { latitude: -77.0599, longitude: 38.9031, } | 3 | hf7 |
| { latitude: -82.77450568, longitude: -179.55742495, } | 12 | 0123456789zb |
| { latitude: 1.0, longitude: -1.0, } | 12 | ebpm9npc6m9b |
| { latitude: 1.0, longitude: -1.0, } | null | null |