timezone
timezone copied to clipboard
Invalid Zone error on real coordinates lookup
Timezone::Error::InvalidZone (Timezone::Error::InvalidZone) raised with Timezone.lookup(1.9856557, -157.3504973) which are the coordinates for Cassidy International Airport
Expected result: Pacific/Kiritimati
Using gem version 1.3.21
This might be an issue with the Google API. I tested these coordinates with Geonames and got the expected result.
irb(main):006:0> Timezone.lookup(1.9856557, -157.3504973)
=> #<Timezone::Zone name: "Pacific/Kiritimati">
Have you tried following up with the Google API folks? If you're able to introspect the response here I would be interested to see the API response you are getting.