lib/gogo_maps.rb in gogo_maps-0.0.4 vs lib/gogo_maps.rb in gogo_maps-0.0.5

- old
+ new

@@ -13,11 +13,11 @@ opts[:address] ? :to_latlng : :to_address ) end def random(opts={}) - lat = ((-160..160).to_a.sample + rand).round(8) - lng = ((-160..160).to_a.sample + rand).round(8) + lat = ((-180..180).to_a.sample + rand).round(8) + lng = ((-180..180).to_a.sample + rand).round(8) get({latlng:[lat, lng].join(',')}.merge(opts)) rescue random #FIXIT: end end