From d43cef654340783fda49bc7eea5f772ac6d80080 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 18 Jun 2019 16:36:22 +0100 Subject: Save location name from geocoding, use it for !w when available closes #71 --- modules/location.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'modules/location.py') diff --git a/modules/location.py b/modules/location.py index 3fcef4ae..2415d20b 100644 --- a/modules/location.py +++ b/modules/location.py @@ -19,5 +19,6 @@ class Module(ModuleManager.BaseModule): timezone = result["annotations"]["timezone"]["name"] lat = result["geometry"]["lat"] lon = result["geometry"]["lng"] + name = result["formatted"] - return {"timezone": timezone, "lat": lat, "lon": lon} + return {"timezone": timezone, "lat": lat, "lon": lon, "name": name} -- cgit v1.3.1-10-gc9f91