Skip to content

Commit 96f080a

Browse files
committed
removed supermarket from restaurant and inc radius
1 parent b5cd04b commit 96f080a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/views.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ def food_restaurant():
162162

163163
url = '''https://maps.googleapis.com/maps/api/place/nearbysearch/json?parameters&key=%s\
164164
&location=%s,%s\
165-
&radius=1000\
166-
&type=department_store|food|grocery_or_supermarket''' %(google_places_api_key,lat,long)
165+
&radius=2000\
166+
&type=food|restaurant''' %(google_places_api_key,lat,long)
167167

168168
results_json = requests.get(url).json()
169169
#print results_json
@@ -189,7 +189,7 @@ def food_bar():
189189

190190
url = '''https://maps.googleapis.com/maps/api/place/nearbysearch/json?parameters&key=%s\
191191
&location=%s,%s\
192-
&radius=1000\
192+
&radius=2000\
193193
&type=bar''' %(google_places_api_key,lat,long)
194194

195195
results_json = requests.get(url).json()
@@ -243,7 +243,7 @@ def food_cafe():
243243

244244
url = '''https://maps.googleapis.com/maps/api/place/nearbysearch/json?parameters&key=%s\
245245
&location=%s,%s\
246-
&radius=1000\
246+
&radius=2000\
247247
&type=cafe''' %(google_places_api_key,lat,long)
248248

249249
results_json = requests.get(url).json()

0 commit comments

Comments
 (0)