aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclarkzjw <[email protected]>2023-02-20 13:58:01 -0800
committerclarkzjw <[email protected]>2023-02-20 13:58:01 -0800
commit88ad58c3d3412162ffdeb96f49b789e7976cad07 (patch)
tree2aa451f8e64da94b34e71ed9b9c43fcba1f4b39e /foursquare
parentf927324709d639adfcd5487c7740e3d60f2246b8 (diff)
downloadswarm2fediverse-88ad58c3d3412162ffdeb96f49b789e7976cad07.tar.gz
minor reformatting
Diffstat (limited to 'foursquare')
-rw-r--r--foursquare/query_poi.py7
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 @@
1import requests
2import json 1import json
2
3import requests
4
3from config import FSQ_API_KEY 5from config import FSQ_API_KEY
4from dbstore.dbm_store import get_loc, store_loc 6from dbstore.dbm_store import store_loc
5 7
6POI_API_ENDPOINT = "https://api.foursquare.com/v3/places/nearby?ll={}%2C{}" 8POI_API_ENDPOINT = "https://api.foursquare.com/v3/places/nearby?ll={}%2C{}"
7OSM_ENDPOINT = "https://www.openstreetmap.org/?mlat={}&mlon={}&zoom=15&layers=M" 9OSM_ENDPOINT = "https://www.openstreetmap.org/?mlat={}&mlon={}&zoom=15&layers=M"
8 10
11
9def query_poi(latitude, longitude): 12def query_poi(latitude, longitude):
10 locations = list() 13 locations = list()
11 14
Powered by cgit v1.2.3 (git 2.41.0)