evanoberholster / timezoneLookup

Timezone lookup API for GPS Coordinates based from GeoJSON
MIT License
46 stars 11 forks source link

Timezone not found #3

Open invander opened 2 years ago

invander commented 2 years ago

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

Casvad commented 2 years ago

And also is not working with this point lat -32.94682 lng -60.63932 can you help me please? Im using the last database provided.

evanoberholster commented 2 years ago

I will look into those 2 locations. unfortunately I don't build the data source so I am unsure as to why those locations aren't mapped.

sknick commented 1 year ago

Ya, I'm running into missing locations too. I even tried a newer release of the timezone data but still no luck. Of note is that this alternate Go library seems to be able to find a location this one can't:

https://github.com/ringsaturn/tzf

tzf -lat 25.04980558104043 -lng 55.237145557863066
Asia/Dubai

This one built as main doesn't find it:

./main -search -lat 25.04980558104043 -lng 55.237145557863066
Searching timezone database
Latitude: 25.049805 Longitude: 55.237144 Timezone:  Lookup time: 98.577µs
Search took: 37.437067ms
surftripper commented 1 year ago

I am finding the same issue with just about any point I am searching within South Africa. It returns "" as the timezone Name for

Latitude = -29.628498 Longitude = 31.233831 and Latitude = -34.121190 Longitude = 18.347751

vsile commented 9 months ago

The same issue for lat=56.9, lng=54.1 (expected Europe/Riga)

изображение

I created an issue in timezone-boundary-builder repository https://github.com/evansiroky/timezone-boundary-builder/issues/162

But it seems an issue is relevant only for timezoneLookup.

ringsaturn commented 6 months ago

The same issue for lat=56.9, lng=54.1 (expected Europe/Riga)

изображение

I created an issue in timezone-boundary-builder repository evansiroky/timezone-boundary-builder#162

But it seems an issue is relevant only for timezoneLookup.

@vsile Try this:

package main

import (
    "fmt"

    "github.com/ringsaturn/tzf"
)

func main() {
    finder, err := tzf.NewDefaultFinder()
    if err != nil {
        panic(err)
    }
    fmt.Println(finder.GetTimezoneName(24.1, 56.9))
}