forked from guribe94/serendipity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
yelp_searcher connected to django, takes address returns JSON
- Loading branch information
Showing
5 changed files
with
25 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
*.pyc | ||
db.sqlite3 | ||
.ropenprojects/* | ||
*/.ropenprojects/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
Django==1.7.4 | ||
geopy==1.8.1 | ||
httplib2==0.9 | ||
oauth2==1.0.0 | ||
python-google-places==0.12.1 | ||
oauth2==1.0 | ||
httplib2==0.9 | ||
wsgiref==0.1.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
from django.shortcuts import render | ||
from django.http import HttpResponse | ||
from yelp_searcher import YelpSearcher | ||
|
||
|
||
# Create your views here. | ||
def place_finder(request, lat, long): | ||
json = r'{"Name":"India","Population":1000000,"States":["Madhya Pradesh","Maharastra","Rajasthan"]}' | ||
print("lat is " + lat) | ||
print("long is " + long) | ||
json = YelpSearcher.get('546 West 113th Street, New York, NY') | ||
print("json value is: " + json) | ||
# print("lat is " + lat) | ||
# print("long is " + long) | ||
return HttpResponse(json, content_type="application/json") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.