Coder Social home page Coder Social logo

evanoberholster / timezonelookup Goto Github PK

View Code? Open in Web Editor NEW
45.0 4.0 11.0 435 KB

Timezone lookup API for GPS Coordinates based from GeoJSON

License: MIT License

Go 100.00%
golang go timezone-api geojson timezone api mmap gps latitude-and-longitude

timezonelookup's People

Contributors

arkie avatar dhduvall avatar evanoberholster avatar gaker avatar ringsaturn avatar tgulacsi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

timezonelookup's Issues

Performance issues

Hi,

I wrote a package https://github.com/ringsaturn/tzf and add a benchmark page compard with this repo https://github.com/evanoberholster/timezoneLookup .

Benchmark shows that timezoneLookup which use RTree is slower 20 times compared with tzf which only use point in polygon search algo from https://github.com/tidwall/geojson

The performance seems comfusing because RTree should be faster, is there anything i missed in the benchmark code?

Benchmark repo https://github.com/ringsaturn/tz-benchmark

Bencmark pages https://ringsaturn.github.io/tz-benchmark/

Windows support

This doesn't seem to function when run on Windows.

# github.com/evanoberholster/timezoneLookup/v2
C:\Users\Nathan Fiscaletti\go\pkg\mod\github.com\evanoberholster\timezone!lookup\[email protected]\timezone.go:222:17: undefined: syscall.Mmap
C:\Users\Nathan Fiscaletti\go\pkg\mod\github.com\evanoberholster\timezone!lookup\[email protected]\timezone.go:222:64: undefined: syscall.PROT_READ
C:\Users\Nathan Fiscaletti\go\pkg\mod\github.com\evanoberholster\timezone!lookup\[email protected]\timezone.go:222:80: undefined: unix.MAP_SHARED
C:\Users\Nathan Fiscaletti\go\pkg\mod\github.com\evanoberholster\timezone!lookup\[email protected]\timezone.go:227:17: undefined: syscall.Munmap

Any plans to add windows support?

Timezone not found

Timezone definition does not work at a point
Lon: 113.80151000
Lat: 26.82077200

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.