Open invander opened 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.
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.
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
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
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.
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))
}
Timezone definition does not work at a point Lon: 113.80151000 Lat: 26.82077200