Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

show distinct candidates for geocoding. [#38 state:resolved]

  • Loading branch information...
commit 8d0d6d9c5cc1170c9cc57c35493bb257b6331f34 1 parent 124b6a2
@nahi authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/google_maps.rb
View
2  lib/google_maps.rb
@@ -56,7 +56,7 @@ def search(str, hl = 'ja')
if result.nil? or v(result, 'error')
nil
elsif choices = v(result, 'choices', 'choice')
- Candidates.new(choices)
+ Candidates.new(choices.uniq)
else
address = v(result, 'google_maps')
address = nil if address.is_a?(SOAP::Mapping::Object)
Please sign in to comment.
Something went wrong with that request. Please try again.