tried the python-geoclue module for geolocation and geocoding http://live.gnome.org/gtg/soc/python_geoclue
bergie posted to #Python Töölö 29.03.2010 (en)
Bottom
Seems to work quite well:import Geocluelocation = Geoclue.DiscoverLocation()location.init()location.set_position_provider("Plazes")position = location.get_location_info()print location.reverse_position(position['latitude'], position['longitude'], 4)Outputs:{'countrycode': u'FI', 'locality': u'Helsinki', 'country': u'Finland', 'region': u'Southern Finland', 'area': '', 'street': ''}
import Geocluelocation = Geoclue.DiscoverLocation()location.init()location.set_position_provider("Plazes")position = location.get_location_info()print location.reverse_position(position['latitude'], position['longitude'], 4)
{'countrycode': u'FI', 'locality': u'Helsinki', 'country': u'Finland', 'region': u'Southern Finland', 'area': '', 'street': ''}
bergie commented on posted to #Python Töölö 29.03.2010 (en)
Mentioned this in my GeoClue 0.12 post