Make lookups return a single result (no array).
More than one result is very rare and it's not clear how one would evaluate the choices. If this is required in the future a new method can be added.
Showing
- lib/geocoder.rb 5 additions, 5 deletionslib/geocoder.rb
- lib/geocoder/lookups/base.rb 6 additions, 7 deletionslib/geocoder/lookups/base.rb
- lib/geocoder/lookups/freegeoip.rb 2 additions, 2 deletionslib/geocoder/lookups/freegeoip.rb
- lib/geocoder/lookups/google.rb 2 additions, 2 deletionslib/geocoder/lookups/google.rb
- lib/geocoder/lookups/yahoo.rb 2 additions, 2 deletionslib/geocoder/lookups/yahoo.rb
- lib/geocoder/orms/base.rb 1 addition, 1 deletionlib/geocoder/orms/base.rb
- lib/geocoder/results/base.rb 14 additions, 0 deletionslib/geocoder/results/base.rb
- test/geocoder_test.rb 13 additions, 13 deletionstest/geocoder_test.rb
Loading
Please register or sign in to comment