google-distance-ruby 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/README.md +36 -3
  2. data/google-distance-ruby.gemspec +1 -1
  3. metadata +1 -1
data/README.md CHANGED
@@ -1,4 +1,37 @@
1
- google-distance-ruby
2
- ====================
1
+ # GoogleDistanceRuby
3
2
 
4
- Ruby client to get the distance between two cities from Google Distance Matrix API.
3
+ Ruby client for The Google Distance Matrix API.
4
+
5
+ Get the distance between two points with one line ruby command.
6
+
7
+ It is necessary to have a Google Distance Matrix API Key. If you don't have one you can get at https://code.google.com/apis/console.
8
+
9
+
10
+
11
+ ## Examples (one line command)
12
+
13
+ GoogleDistanceRuby.new("{your_key}").distance("Vinhedo/SP", "Campinas/SP")
14
+
15
+ returns {:origin=>"Vinhedo - São Paulo, Brazil", :destination=>"Campinas - São Paulo, Brazil", :distance=>24034}
16
+
17
+
18
+ GoogleDistanceRuby.new("{your_key}").distance("Miami-FL", "Orlando-FL")
19
+
20
+ returns {:origin=>"Miami, FL, USA", :destination=>"Orlando, FL, USA", :distance=>376515}
21
+
22
+
23
+
24
+
25
+ ## Installation
26
+
27
+ Add this line to your application's Gemfile:
28
+
29
+ gem 'google_distance_ruby'
30
+
31
+ And then execute:
32
+
33
+ $ bundle install
34
+
35
+ Or install it as:
36
+
37
+ $ gem install google_distance_ruby
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "google-distance-ruby"
3
- s.version = "0.0.2"
3
+ s.version = "0.0.3"
4
4
  s.date = "2014-06-20"
5
5
  s.summary = "Google Distance Ruby"
6
6
  s.description = "A gem to get the distance between two cities."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-distance-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: