Last active
December 12, 2015 04:28
-
-
Save sigurdga/4714736 to your computer and use it in GitHub Desktop.
Trying to use gjs to do geocode queries… I found a small example in python, and converted it to javascript: http://cheesehead-techblog.blogspot.no/2012/11/geoclue-vs-geocode-glib.html My javascript version does not work - I don't get any results. And I just checked and saw that copy-pasting the python code also got no results back.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const GeocodeGlib = imports.gi.GeocodeGlib; | |
let location = new GeocodeGlib.Object(); | |
location.add('city','Milwaukee'); | |
let result = location.resolve(); | |
print(result); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Output: