expose reverse geocoding through exports

This commit is contained in:
jesopo 2019-07-16 16:42:13 +01:00
parent c765a29d09
commit 759324bb65

View file

@ -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={