Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

update readme

  • Loading branch information...
commit a04f6691e7e7b605a392b8b219ea530a0c5a880b 1 parent 902ec28
Josh Crews authored
View
4 Manifest
@@ -1,5 +1,9 @@
Manifest
README.textile
Rakefile
+google_directions.gemspec
init.rb
lib/google_directions.rb
+test/mocks/google_directions_samle_xml.xml
+test/test_helper.rb
+test/unit/google_directions_test.rb
View
9 README.textile
@@ -18,6 +18,12 @@ xml = directions.xml
xml_call = directions.xml_call
</pre>
+h3. Error situations
+
+If Google can't recognize your places, the distance_in_miles and drive_time_in_minutes will each return 0. You can call <pre>directions.status</pre> and it should return "NOT_FOUND" (directions.status will also return any other Google API call statuses)
+
+TODO: handle QUERY_OVER_LIMIT
+
h2. Installation
h3. gem
@@ -50,4 +56,5 @@ You'll need a Google Map API key
http://code.google.com/apis/maps/signup.html
-Include it as the constant GOOGLE_MAPS_API_KEY in an app configuration file (environment.rb, config/initializers/api_keys.rb)
+Include it as the constant GOOGLE_MAPS_API_KEY in an app configuration file (environment.rb, config/initializers/api_keys.rb)
+
View
2  Rakefile
@@ -3,7 +3,7 @@ require 'rubygems'
require 'rake'
require 'echoe'
-Echoe.new('google_directions', '0.1.0') do |p|
+Echoe.new('google_directions', '0.1.1') do |p|
p.description = "Ruby-wrapper for Google Directions API. Can return the drive time and driving distance between to places"
p.url = "http://github.com/joshcrews/Google-Directions-Ruby"
p.author = "Josh Crews"
View
5 google_directions.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{google_directions}
- s.version = "0.1.0"
+ s.version = "0.1.1"
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
s.authors = ["Josh Crews"]
@@ -10,13 +10,14 @@ Gem::Specification.new do |s|
s.description = %q{Ruby-wrapper for Google Directions API. Can return the drive time and driving distance between to places}
s.email = %q{josh@joshcrews.com}
s.extra_rdoc_files = ["README.textile", "lib/google_directions.rb"]
- s.files = ["Manifest", "README.textile", "Rakefile", "init.rb", "lib/google_directions.rb", "google_directions.gemspec"]
+ s.files = ["Manifest", "README.textile", "Rakefile", "google_directions.gemspec", "init.rb", "lib/google_directions.rb", "test/mocks/google_directions_samle_xml.xml", "test/test_helper.rb", "test/unit/google_directions_test.rb"]
s.homepage = %q{http://github.com/joshcrews/Google-Directions-Ruby}
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Google_directions", "--main", "README.textile"]
s.require_paths = ["lib"]
s.rubyforge_project = %q{google_directions}
s.rubygems_version = %q{1.3.7}
s.summary = %q{Ruby-wrapper for Google Directions API. Can return the drive time and driving distance between to places}
+ s.test_files = ["test/test_helper.rb", "test/unit/google_directions_test.rb"]
if s.respond_to? :specification_version then
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
Please sign in to comment.
Something went wrong with that request. Please try again.