From da827946563678c3bb9dcba912051d9ac430149e Mon Sep 17 00:00:00 2001 From: Saurabh Date: Fri, 16 Jun 2017 04:21:27 +0530 Subject: [PATCH] updated --- app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app.py b/app.py index ecec6e8..be1eb84 100644 --- a/app.py +++ b/app.py @@ -96,9 +96,10 @@ def log(msg): def location_data(lat,lng,type): loaction="lat"+","+"lng" + final_url= base_url+location + "rankby=distance&types=" + type+ "&sensor=false&key="+ place_api #r=requests.get("https://maps.googleapis.com/maps/api/place/search/json?location=31.6607795,74.8214579&rankby=distance&types=police&sensor=false&key="+place_api) - r=request.get(base_url+location+"rankby=distance&types="+type+&sensor=false&key="+ place_api) + r=request.get(final_url) #print r.content #d = ast.literal_eval(r)