Skip to content
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

Timezone Information #13

Closed
niedfelj opened this issue May 9, 2011 · 2 comments
Closed

Timezone Information #13

niedfelj opened this issue May 9, 2011 · 2 comments

Comments

@niedfelj
Copy link

niedfelj commented May 9, 2011

Is it possible to include timezone information with the geocodes?

@danielmorrison
Copy link
Member

Yes, and there's a bit of code in there to do that, through the Geonames geocoded, but I haven't figured how to abstract it well enough yet.

Here's what I do as an after_save in one project:

def lookup_time_zone
  if geocode
    time_zone = Graticule::Geocoder::Geonames.new.time_zone(geocode.to_location)
    update_attribute :time_zone, time_zone
  end
end

I'd love to increase the number of geocodes, and abstract it, but it hasn't come up recently.

@asheren
Copy link

asheren commented May 3, 2017

Hi there! We’re doing some open source maintenance work and closing old issues. If you would still like this issue to be addressed, please re-open it by May 17, 2017. Thanks!

@asheren asheren closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants