diff options
| author | 2019-06-18 16:36:22 +0100 | |
|---|---|---|
| committer | 2019-06-18 16:36:22 +0100 | |
| commit | d43cef654340783fda49bc7eea5f772ac6d80080 (patch) | |
| tree | 840e221a9b4f2ec6836774d328d527d0085c9aea /modules/location.py | |
| parent | Only try to show !w country when it is available. closes #72 (diff) | |
| signature | ||
Save location name from geocoding, use it for !w when available
closes #71
Diffstat (limited to 'modules/location.py')
| -rw-r--r-- | modules/location.py | 3 |
1 files changed, 2 insertions, 1 deletions
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} |
