Closed LarrySonar closed 18 hours ago
thanks for reporting, yes this version fixes errors where location were not found at all but it is less precise than before. I will work on a fix, meanwhile use version 2.1.5:
docker run --pull=always -p 2004:2004 ghcr.io/noandrea/geo2tz:2.1.5
Appreciate the quick response! Precision is important for us, so we have rolled back to an earlier version and will monitor for changes.
@LarrySonar should be fixed in https://github.com/noandrea/geo2tz/releases/tag/v2.3.0 can you give it a go?
This is indeed resolved in that release, all of the previous issues have been corrected. Thanks for the rapid fix!
While fixed in 2.3.0 it is broken in 2.4.0. The coordinates 0, 0 are returning Pacific/Honolulu and should be returning Etc/GMT.
I cannot reproduce, here are the results I get running it locally:
version request
➜ curl -s http://localhost:2004/tz/version | jq
{
"version": "2024a",
"url": "https://github.com/evansiroky/timezone-boundary-builder/releases/tag/2024a",
"geo_data_url": "https://github.com/evansiroky/timezone-boundary-builder/releases/download/2024a/timezones-with-oceans.geojson.zip"
}
coordinates request
➜ curl -s http://localhost:2004/tz/0/0 | jq
{
"coords": {
"lat": 0,
"lon": 0
},
"tz": "Etc/GMT"
}
server logs
➜ docker run --pull=always -p 2004:2004 ghcr.io/noandrea/geo2tz:latest
latest: Pulling from noandrea/geo2tz
Digest: sha256:6f4db352cbe26ecb415a3ab600f106a9c3cbf4feddea05732f76502a880b21cb
Status: Image is up to date for ghcr.io/noandrea/geo2tz:latest
_____ ___ _
/ ____| |__ \| |
| | __ ___ ___ ) | |_ ____
| | |_ |/ _ \/ _ \ / /| __|_ /
| |__| | __/ (_) / /_| |_ / /
\_____|\___|\___/____|\__/___| version 2.4.0
⇨ http server started on [::]:2004
{"time":"2024-07-01T14:59:22.315462477Z","id":"","remote_ip":"172.17.0.1","host":"localhost:2004","method":"GET","uri":"/tz/version","user_agent":"curl/7.81.0","status":200,"error":"","latency":20320,"latency_human":"20.32µs","bytes_in":0,"bytes_out":234}
{"time":"2024-07-01T14:59:28.355996568Z","id":"","remote_ip":"172.17.0.1","host":"localhost:2004","method":"GET","uri":"/tz/0/0","user_agent":"curl/7.81.0","status":200,"error":"","latency":67025,"latency_human":"67.025µs","bytes_in":0,"bytes_out":44}
closing as I cannot reproduce it, @LarrySonar please reopen if you have more details about the issue you are facing
We utilize the docker image using @latest and the 2.2.0 is not returning correct results. Here are some examples:
Should be returning tz: America/Chicago
Again, tz: America/Chicago is correct.
Should be returning tz: Europe/Moscow
Please let me know if any further information is needed. Thanks!