expose reverse geocoding through exports
This commit is contained in:
parent
c765a29d09
commit
759324bb65
1 changed files with 1 additions and 0 deletions
|
@ -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={
|
||||
|
|
Loading…
Reference in a new issue