Code snippet:
import location
location.start_updates()
loc_dic = location.get_location()
addr_dic = location.reverse_geocode(loc_dic)
Get location works fine, converting it to a friendly street address does not. When I enter the same statement (the last line) in the console, it works just fine and creates a dictionary with all the interesting info. Any ideas what could be going on? Is it a timing issue, meaning I have to wait until it’s populated?
Thanks