lib/geocoder/results/geocodio.rb in geocoder-1.2.3 vs lib/geocoder/results/geocodio.rb in geocoder-1.2.4
- old
+ new
@@ -43,10 +43,10 @@
def location
@data['location']
end
def coordinates
- ['lat', 'lng'].map{ |i| location[i] } if location
+ ['lat', 'lng'].map{ |i| location[i].to_f } if location
end
def accuracy
@data['accuracy'].to_f if @data.key?('accuracy')
end