diff options
Diffstat (limited to 'foursquare/query_poi.py')
-rw-r--r-- | foursquare/query_poi.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/foursquare/query_poi.py b/foursquare/query_poi.py index efdd1b1..e2d5625 100644 --- a/foursquare/query_poi.py +++ b/foursquare/query_poi.py | |||
@@ -1,11 +1,14 @@ | |||
1 | import requests | ||
2 | import json | 1 | import json |
2 | |||
3 | import requests | ||
4 | |||
3 | from config import FSQ_API_KEY | 5 | from config import FSQ_API_KEY |
4 | from dbstore.dbm_store import get_loc, store_loc | 6 | from dbstore.dbm_store import store_loc |
5 | 7 | ||
6 | POI_API_ENDPOINT = "https://api.foursquare.com/v3/places/nearby?ll={}%2C{}" | 8 | POI_API_ENDPOINT = "https://api.foursquare.com/v3/places/nearby?ll={}%2C{}" |
7 | OSM_ENDPOINT = "https://www.openstreetmap.org/?mlat={}&mlon={}&zoom=15&layers=M" | 9 | OSM_ENDPOINT = "https://www.openstreetmap.org/?mlat={}&mlon={}&zoom=15&layers=M" |
8 | 10 | ||
11 | |||
9 | def query_poi(latitude, longitude): | 12 | def query_poi(latitude, longitude): |
10 | locations = list() | 13 | locations = list() |
11 | 14 | ||