Giter Club home page Giter Club logo

Comments (8)

paulochf avatar paulochf commented on July 17, 2024

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.

benjie avatar benjie commented on July 17, 2024

Please see mattbornski/tzwhere#8 for a potential explanation.

from pytzwhere.

cstich avatar cstich commented on July 17, 2024

I am working on a somewhat 'hacky' workaround for this.

from pytzwhere.

benjie avatar benjie commented on July 17, 2024

@cstich I'm interested, please keep us updated :)

from pytzwhere.

cstich avatar cstich commented on July 17, 2024

@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.

benjie avatar benjie commented on July 17, 2024

Neat :)

from pytzwhere.

cstich avatar cstich commented on July 17, 2024

The code for the lookup hack is now in the master branch.

from pytzwhere.

antoniogamizbadger avatar antoniogamizbadger commented on July 17, 2024

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:

image

That's from the google geocoding tool for developers.

from pytzwhere.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.