Module: Dummy::Geolocation
Instance Method Summary collapse
Instance Method Details
#lat ⇒ Object
5 6 7 |
# File 'lib/dummy/geolocation.rb', line 5 def lat (rand(1.8e11)-9e10)/1e9 # precision 9 end |
#lng ⇒ Object
9 10 11 |
# File 'lib/dummy/geolocation.rb', line 9 def lng (rand(3.6e11)-1.8e11)/1e9 # precision 9 end |