diff options
author | clarkzjw <[email protected]> | 2023-02-20 13:58:01 -0800 |
---|---|---|
committer | clarkzjw <[email protected]> | 2023-02-20 13:58:01 -0800 |
commit | 88ad58c3d3412162ffdeb96f49b789e7976cad07 (patch) | |
tree | 2aa451f8e64da94b34e71ed9b9c43fcba1f4b39e /foursquare/query_poi.py | |
parent | f927324709d639adfcd5487c7740e3d60f2246b8 (diff) | |
download | swarm2fediverse-88ad58c3d3412162ffdeb96f49b789e7976cad07.tar.gz |
minor reformatting
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 | ||