Update loc.py

pull/125/head
alanbjohnston 5 years ago committed by GitHub
parent c0ec00434e
commit 5ecf84adcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,6 +14,8 @@ PARAMS = {'apikey':api_key,'q':location}
r = requests.get(url = URL, params = PARAMS)
data = r.json()
print(data)
latitude = data['items'][0]['position']['lat']
longitude = data['items'][0]['position']['lng']

Loading…
Cancel
Save

Powered by TurnKey Linux.