Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhdaalia committed Jun 15, 2017
1 parent 09ee62b commit da82794
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit da82794

Please sign in to comment.