README.md in google_timezone-0.0.1 vs README.md in google_timezone-0.0.3

- old
+ new

@@ -16,12 +16,22 @@ $ gem install google_timezone ## Usage +You can pass latitude and longitude to gem in several ways: with array or separated values. + + GoogleTimezone.fetch([latitude, longitude]) + GoogleTimezone.fetch(latitude, longitude) + +Any other options which are described in google's documentation you can pass via options hash + + GoogleTimezone.fetch(latitude, longitude, language: 'en', signature: 'key') + It uses latitude and longitude to retrieve timezone info. - GoogleTimezone.fetch(50.1196004, 8.679918299999999) + result = GoogleTimezone.fetch(50.1196004, 8.679918299999999) + result.time_zone_name => 'Europe/Berlin' It will get `GoogleTimezone::Result` object which maps major google api responce items named in snake case. More information [here](https://developers.google.com/maps/documentation/timezone/) Also there is `GoogleTimezone::Result#success?` method. It returns true if responce was successful.