Skip to content

Commit

Permalink
GOOGLE_MAPS_API_KEY is not needed
Browse files Browse the repository at this point in the history
https://code.google.com/intl/fr/apis/maps/documentation/directions/
Note: The Google Directions API does not require a Maps API key!

Signed-off-by: Laurent Arnoud <[email protected]>
  • Loading branch information
spk committed Aug 1, 2011
1 parent 7fa4974 commit 9013d28
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion lib/google_directions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def initialize(location_1, location_2)
@location_1 = location_1
@location_2 = location_2
options = "origin=#{transcribe(@location_1)}&destination=#{transcribe(@location_2)}"
options += "&key=#{GOOGLE_MAPS_API_KEY}" if defined?(GOOGLE_MAPS_API_KEY)
@xml_call = @base_url + options
@status = find_status
end
Expand Down
3 changes: 0 additions & 3 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,3 @@

$:.unshift File.expand_path('../lib', __FILE__)
require 'google_directions'

GOOGLE_MAPS_API_KEY = "afakeapithatworksanyway"

0 comments on commit 9013d28

Please sign in to comment.