Comments (8)
I tested the original package mattbornski/tzwhere and it returns null.
The problem isn't this package fault, but still, I guess people should know it happens.
from pytzwhere.
Please see mattbornski/tzwhere#8 for a potential explanation.
from pytzwhere.
I am working on a somewhat 'hacky' workaround for this.
from pytzwhere.
@cstich I'm interested, please keep us updated :)
from pytzwhere.
@benjie I just pushed the workaround to the development branch. It should work but I haven't done a lot of testing yet. You can see usage in the README.md. Basically you can tell the library now to look for a reasonable candidate if it doesn't find a proper timezone. If you have more than one candidate, it picks the closest. There are also potentially edge cases, where this doesn't work.
from pytzwhere.
Neat :)
from pytzwhere.
The code for the lookup hack is now in the master branch.
from pytzwhere.
Hi, is this hack still on the package? I came here with a really similar problem:
tzwhere_instance.tzNameAt(40.689249, -74.0445)
That does not return the timezone, and I suppose it should:
That's from the google geocoding tool for developers.
from pytzwhere.
Related Issues (20)
- Potentially wrong results returned HOT 17
- Upload 2.3 to pypi? HOT 3
- forceTZ returning unexpected result HOT 5
- all of China should be +0800, but some are showing up as +0600 HOT 5
- tzNameAt bombs with a KeyError on certain latitudes / longitudes HOT 1
- Outdated data HOT 1
- `tz_world_shortcuts.json` is missing from setup.py HOT 8
- package_data are not installed when installing pytzwhere with pip in a venv HOT 5
- tz_world.json.gz does not exits HOT 1
- What happened to tzOffsetAt?
- can't insatll pytzwhere on Win 10
- Add tests to PyPI source tarball? HOT 1
- With latest numpy update, generates an error on initialization HOT 7
- No timezone for Dubai HOT 1
- how to return this format as "GMT +9" or "GMT -5"οΌThx
- VisibleDeprecationWarning HOT 1
- ValueError due to shapely update HOT 5
- ModuleNotFoundError: No module named 'shapely.lib' HOT 2
- Constructor fails with value error
- Is this project still maintained?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytzwhere.