aboutsummaryrefslogtreecommitdiff
path: root/modules/location.py
diff options
context:
space:
mode:
Diffstat (limited to 'modules/location.py')
-rw-r--r--modules/location.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/modules/location.py b/modules/location.py
index 85e147da..284ee3ad 100644
--- a/modules/location.py
+++ b/modules/location.py
@@ -16,10 +16,7 @@ class Module(ModuleManager.BaseModule):
if page and page.data["results"]:
result = page.data["results"][0]
timezone = result["annotations"]["timezone"]["name"]
- continent = result["components"]["continent"]
- country = result["components"]["country"]
- city = result["components"]["city"]
+ lat = result["geometry"]["lat"]
+ lon = result["geometry"]["lng"]
- print("yes")
- return {"timezone": timezone, "continent": continent,
- "country": country, "city": city}
+ return {"timezone": timezone, "lat": lat, "lon": lon}