Allow an extra decimal place

main
Bob Mottram 2021-05-10 20:14:27 +01:00
parent c990dab6c7
commit ab600800f4
1 changed files with 2 additions and 2 deletions

View File

@ -140,8 +140,8 @@ def spoofGeolocation(baseDir: str,
# gps locations aren't transcendental, so round to a fixed
# number of decimal places
latitude = int(latitude * 10000) / 10000.0
longitude = int(longitude * 10000) / 10000.0
latitude = int(latitude * 100000) / 100000.0
longitude = int(longitude * 100000) / 100000.0
return latitude, longitude, latdirection, longdirection
return (default_latitude, default_longitude,