gogo_maps 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gogo_maps/version.rb +1 -1
- data/lib/gogo_maps.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 214de8fecd1e9b7a258de32a1113557f6af2d409
|
4
|
+
data.tar.gz: d28cd8addf55e22eeed81f78acaf24b146d1b248
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95931298ff7f224e6855f5940d0925532e8d5ae892f93d28f4a32e1a2a8d276b5359c1e2fcbce83e4416b25db8d4fd1662cfe7ccfe52bc4ebb18c221737d5c76
|
7
|
+
data.tar.gz: 1cdda3f069f7b3cf549a2bae9e74863136536dd6085de21f30a1979d6d334c3701478e38506a71d07c1f849a75b7453860e7d9900060997ecddb28cb45a91bb1
|
data/lib/gogo_maps/version.rb
CHANGED
data/lib/gogo_maps.rb
CHANGED
@@ -15,8 +15,8 @@ module GogoMaps
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def random(opts={})
|
18
|
-
lat = ((-
|
19
|
-
lng = ((-
|
18
|
+
lat = ((-180..180).to_a.sample + rand).round(8)
|
19
|
+
lng = ((-180..180).to_a.sample + rand).round(8)
|
20
20
|
get({latlng:[lat, lng].join(',')}.merge(opts))
|
21
21
|
rescue
|
22
22
|
random #FIXIT:
|