|
|
@@ -16,7 +16,6 @@ from collections import Counter
|
|
|
from datetime import datetime
|
|
|
from typing import Dict, List, Union
|
|
|
|
|
|
-import pygeohash
|
|
|
from pyspark.sql.functions import udf
|
|
|
from pyspark.sql.types import (
|
|
|
ArrayType, BooleanType, FloatType, IntegerType, LongType, MapType,
|
|
|
@@ -372,10 +371,6 @@ def min_value(*args):
|
|
|
return mini_value
|
|
|
|
|
|
|
|
|
-def geo_hash(latitude: float, longitude: float, precision: int) -> str:
|
|
|
- return pygeohash.encode(latitude, longitude, precision)
|
|
|
-
|
|
|
-
|
|
|
def millis_timestamp_to_str(ts: int, str_format: str = None) -> str:
|
|
|
date_time = datetime.fromtimestamp(ts / 1000.0)
|
|
|
if str_format:
|