google_places 0.13.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.rdoc +8 -0
- data/google_places.gemspec +1 -1
- data/lib/google_places/spot.rb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MTljYTFkZGJiNTgzYjA4OTJkYWY1NTA5OTgxYTZhMDRjZTY0ZDM0Yw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Zjg0ZGViNzgzMDlmMzQ0YmVjMzdkZjU5ZGNiZGJiMjBlY2NjYjY0OA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTY4NWIwNmFhZWRkMmQyNWE0MGYxM2FhMTcwM2NiYmIzMmUyMzljZmRiZDdi
|
10
|
+
ZDZiMDc1YTk3ZjI5ODFjMDUwM2QzZjBjMTE4NzFmZTEwM2QxNmU4MzI1NWI3
|
11
|
+
MGM2N2VlOGQzMjlkODhiZjFhNDhlYThhYjA4MTk0YjdjNDdjMzU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTU3M2I0YTJkMDRjMjhhYWI3MDE1MDRlMDQ1MGQxNTZjMjc0NDQ4OWZhNWFh
|
14
|
+
ZDdjNDJkNDEzZDg0MDU3OWIyNTQ5NWYwNzU3NTA5ZTE2ZGNkMjZmMjA2YmQ4
|
15
|
+
Njk1Yzg3NzJiYjVhYjVhNDMzMTliM2M4Nzk5NzAwMmEwMDg3NWM=
|
data/README.rdoc
CHANGED
@@ -74,6 +74,14 @@ Search by name *and* type:
|
|
74
74
|
|
75
75
|
@client.spots(-33.8670522, 151.1957362, :name => 'italian', :types => 'restaurant')
|
76
76
|
|
77
|
+
Search in a radius (in meters):
|
78
|
+
|
79
|
+
@client.spots(-33.8670522, 151.1957362, :radius => 100)
|
80
|
+
|
81
|
+
Get results in specific language:
|
82
|
+
|
83
|
+
@client.spots(-33.8670522, 151.1957362, :language => 'en')
|
84
|
+
|
77
85
|
=== Retrieving a single spot
|
78
86
|
|
79
87
|
First register a new Client:
|
data/google_places.gemspec
CHANGED
data/lib/google_places/spot.rb
CHANGED
@@ -236,7 +236,10 @@ module GooglePlaces
|
|
236
236
|
results = []
|
237
237
|
|
238
238
|
self.multi_pages_request(method, multipage_request, options) do |result|
|
239
|
-
|
239
|
+
# Some places returned by Google do not have a 'types' property. If the user specified 'types', then
|
240
|
+
# this is a non-issue because those places will not be returned. However, if the user did not specify
|
241
|
+
# 'types', then we do not want to filter out places with a missing 'types' property from the results set.
|
242
|
+
results << self.new(result) if result['types'].nil? || (result['types'] & exclude) == []
|
240
243
|
end
|
241
244
|
|
242
245
|
results
|