-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathtzfpy.pyi
More file actions
33 lines (24 loc) · 851 Bytes
/
tzfpy.pyi
File metadata and controls
33 lines (24 loc) · 851 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""Probably the fastest Python package to convert longitude/latitude to timezone name(s)."""
from typing import List
def get_tz(lng: float, lat: float) -> str:
"""Get timezonename for location.
It will return the first positive match.
"""
...
def get_tzs(lng: float, lat: float) -> List[str]:
"""Get timezonenames for location.
It will iter all polygon and return all positive match.
"""
...
def timezonenames() -> List[str]:
"""Show all support timezone names."""
...
def data_version() -> str:
"""Show current tzdata version"""
...
def get_tz_polygon_geojson(timezone_name: str) -> str:
"""Get timezone polygon as GeoJSON string from PolygonFinder."""
...
def get_tz_index_geojson(timezone_name: str) -> str:
"""Get timezone polygon as GeoJSON string from FuzzyFinder."""
...