timezone icon indicating copy to clipboard operation
timezone copied to clipboard

Invalid Zone error on real coordinates lookup

Open eric-norcross opened this issue 2 years ago • 1 comments

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

eric-norcross avatar Jan 12 '23 22:01 eric-norcross

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.

panthomakos avatar Jan 20 '23 05:01 panthomakos