weather: use https for the nominatim
This commit is contained in:
@@ -17,7 +17,7 @@ r_from = re.compile(r'(?i)([+-]\d+):00 from')
|
|||||||
|
|
||||||
|
|
||||||
def location(q):
|
def location(q):
|
||||||
uri = 'http://nominatim.openstreetmap.org/search/?q={query}&format=json'.\
|
uri = 'https://nominatim.openstreetmap.org/search/?q={query}&format=json'.\
|
||||||
format(query=web.quote(q))
|
format(query=web.quote(q))
|
||||||
results = web.get(uri)
|
results = web.get(uri)
|
||||||
data = json.loads(results)
|
data = json.loads(results)
|
||||||
|
|||||||
Reference in New Issue
Block a user