gogo_maps 0.0.3 → 0.0.4
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: 6e946a3c75ceaea0f122976307b89122effc974a
|
4
|
+
data.tar.gz: 78ed74e1f04f613a3ce0b572fc7fcb87a67feef7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7af054199eb82c3c9951d32c627788f673694ca56952e0c6f12514666f008330c9e1f428eaa39d82b7c90b5bb50039784a3c75f646092e37c57d5db179a5069a
|
7
|
+
data.tar.gz: 266b192a89bbeba04853339a86d5134d5f3b663f1c968890dc453eab4c7db719baf9d8f65c319b74cde21e455619e0fea84bc68fefc79b417f2d08d058df79b8
|
data/lib/gogo_maps/version.rb
CHANGED
data/lib/gogo_maps.rb
CHANGED
@@ -14,10 +14,10 @@ module GogoMaps
|
|
14
14
|
)
|
15
15
|
end
|
16
16
|
|
17
|
-
def random
|
17
|
+
def random(opts={})
|
18
18
|
lat = ((-160..160).to_a.sample + rand).round(8)
|
19
19
|
lng = ((-160..160).to_a.sample + rand).round(8)
|
20
|
-
get(latlng:[lat, lng].join(','))
|
20
|
+
get({latlng:[lat, lng].join(',')}.merge(opts))
|
21
21
|
rescue
|
22
22
|
random #FIXIT:
|
23
23
|
end
|