google-place-text-search 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_place_text_search.rb +1 -1
- 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: a8a830ca5e133e2ca56884c1544a0b5440a74261
|
4
|
+
data.tar.gz: cda4174613f447026c118a7806c6543dba31dc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 595a13702406dad283e6ae975f15919c614b2b86116175d960c17b7f5fa9a66af816eb5794fc42243496f03f5e8326e94c5e1e3ccf454729e5c15e663ba8990d
|
7
|
+
data.tar.gz: 9cdf7dd8e3a9637f55ee6afba872cddd22c8cd3c3809807f9e38e4801398c5ffb2672e5bc782072da4ebdf2efce2f8fcda35107ea26a3b10247f0594d96b36ad
|
@@ -5,7 +5,7 @@ class GooglePlaceTextSearch
|
|
5
5
|
|
6
6
|
def get_response(api_key,radius,location,query)
|
7
7
|
url = "https://maps.googleapis.com/maps/api/place/textsearch/json"
|
8
|
-
location="#{lat},#{lng}"
|
8
|
+
#location="#{lat},#{lng}"
|
9
9
|
response = HTTParty.get("#{url}", :query=>{:api_key=>api_key,:query=>query, :location=>location,:radius=>radius})
|
10
10
|
|
11
11
|
json = JSON.parse(response.body)
|