fixing renderText script
This commit is contained in:
Executable
+16
@@ -0,0 +1,16 @@
|
||||
import Geoclue
|
||||
|
||||
providers = 'Gypsy, Hostip, Localnet, Plazes, Skyhook, Yahoo, Ubuntu GeoIP'
|
||||
providers = providers.split(', ')
|
||||
for provider in providers:
|
||||
|
||||
POS_PROVIDER = provider
|
||||
|
||||
location = Geoclue.DiscoverLocation()
|
||||
location.init()
|
||||
location.set_position_provider(POS_PROVIDER)
|
||||
position = location.get_location_info()
|
||||
|
||||
print provider
|
||||
print position['latitude']
|
||||
print position['longitude']
|
||||
Reference in New Issue
Block a user