From 759324bb65e8a5520a738c198eac3514784fb3d0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 16 Jul 2019 16:42:13 +0100 Subject: [PATCH] expose reverse geocoding through exports --- modules/location.py | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/location.py b/modules/location.py index 0c795535..53c25cf9 100644 --- a/modules/location.py +++ b/modules/location.py @@ -16,6 +16,7 @@ class Module(ModuleManager.BaseModule): example="London, GB") setting._func = self._get_location self.exports.add("set", setting) + self.exports.add("get-location", self._get_location) def _get_location(self, s): page = utils.http.request(URL_OPENCAGE, get_params={