pytzwhere
pytzwhere copied to clipboard
python library to look up timezone from lat lng offline
This should fix https://github.com/pegler/pytzwhere/issues/60
Hi, The latest commit was 6 years ago(2018) https://github.com/pegler/pytzwhere/commit/32d2bef9ff2d784741471fddb35fbb6732f556d5 and no PR got merged after that. Will this project get maintained by anyone? I suggest use alternatives: 1. [timezonefinder](https://github.com/jannikmi/timezonefinder) 2....
this modification will fix the bug in the constructor in version 3.0.3
---> 13 tz1 = tzwhere.tzwhere(forceTZ=True) File ~\Miniconda3\envs\blah\Lib\site-packages\tzwhere\tzwhere.py:62, in tzwhere.__init__(self, forceTZ) 60 self.timezoneNamesToPolygons[tzname].append(poly) 61 for tzname, polys in self.timezoneNamesToPolygons.items(): ---> 62 self.timezoneNamesToPolygons[tzname] = WRAP(polys) 64 if forceTZ: 65 self.unprepTimezoneNamesToPolygons[tzname] = WRAP(polys)...
Using numpy 1.19.2 (I don't believe this occurred with 1.17.*), tzwhere 3.0.3, on initialization get the following error: /usr/local/lib/python3.8/dist-packages/numpy/core/_asarray.py:83: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a...
I faced this error when initialize tzwhere: ``` Traceback (most recent call last): File "C:\Users\pizhlo21\Desktop\Folder\python\tg_bot_reminder\controller.py", line 15, in import records File "C:\Users\pizhlo21\Desktop\Folder\python\tg_bot_reminder\records\__init__.py", line 3, in from .main import get_records, delete_record,...
shapely recently updated with a breaking change. I think this occured with version 2.0.0 of shapely ``` tz = tzwhere.tzwhere() File "/usr/local/lib/python3.10/site-packages/tzwhere/tzwhere.py", line 62, in __init__ self.timezoneNamesToPolygons[tzname] = WRAP(polys) ValueError:...
miniforge3/envs/a50-dev/lib/python3.9/site-packages/tzwhere/tzwhere.py:65: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you...
This is a minor PR to avoid numpy DeprecationWarning on: ``` numpy/core/_asarray.py:102: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths...
Querying the time zone by coordinates, eats more than 500MB of memory, which causes my product to stop on the server. Are there any examples of code optimization? .service: Main...