Solution for: #47: finding a time zone give lat/lon coordinates

use the flickr API

1
The Flickr API is amazing. using the places.findByLatLon method, you can not only reverse geocode your coordinates, but each place response comes with a a TZ time zone identifier! TZ is the database used by the Rails time zone stuff, so it's perfect for use in rails. Here's a trivial example using the excellent flickraw gem:

o = Observation.first places = flickr.places.findByLatLon(:lat => o.latitude, :lon => o.longitude) o.time_zone = ActiveSupport::TimeZone::MAPPING.invert[places.first.timezone]

Also, it's Flickr, so pretty robust and open.