-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Denmark coords resolve as Asia/Phnom_Penh #1
Comments
I have confirmed this using latest http://bbox.me/osm/index.html?bbox=55.812497,12.562490,56.000007,12.750010 I've opened the tz_world shapefile in Qgis and AFAIK it looks OK. Selecting 'Asia/Phnom_Penh' and zooming in on that does not include any area near Denmark. |
Sorry, I can't look at this anytime soon. I'm offline for two weeks starting tomorrow, on vacation. Let me know if you discover any other clues. |
Sorry, ignore that. Tests were failing due to non-existence of tables. Tests are OK 😊
|
Singapore airport also resolves to Asia/Phnom_Penh... If I ever get the time I might make a pull request. |
@bradfitz I know that this library isn't supposed to be very accurate and you probably don't have time to mantain this. Would you have recommendations for a more accurate go library to use? |
Not off the top of my head. |
@cicika, @sidazhang, could either of you try this again with the latest data? |
I tested this earlier and thought it looked good, but turns out that the coords @cicika supplied now return no timezone! e.g. lat := 55.850667
lon := 12.56804
fmt.Println(latlong.LookupZoneName(lat, lon)) returns blank. I've tried a few other locations around the globe and they return correct results. |
I still get the above result – blank zone names for certain lat, lng's, looks like it's usually when it's close to the water. |
For Singapore I also get blank zone names
How to fix it? |
Hi!
There's a patch of Denmark that resolves into Asia/Phnom_Penh timezone, which is quite unusual. I would have addressed the problem myself, but, admittedly, I have been playing with the language only for a short while, and wouldn't even know where to start.
Example coords: 55.850667, 12.56804
Awesome lib by the way and a wonderful solution to the problem.
Thanks!
The text was updated successfully, but these errors were encountered: