Hello,
I am having the same problem, unable to update location within a loop. Did you figure out how to fix this?The following code shows the same location and time stamp for each iteration of the loop.
import location, time
def getLocation():
location.start_updates()
time.sleep(5) # give GPS hardware 5 seconds to wake up
currLoc = location.get_location()
return currLoc
x=0
while x<10:
print(getLocation())
x=x+1