Location service: make distance and time threshold configurable

Right now the distance is always in meters, the mobile app doesn't deal
with units at all, anyway.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-11-14 09:10:06 -08:00
parent 24404a401d
commit 76d0763527
7 changed files with 84 additions and 9 deletions

View file

@ -1601,6 +1601,13 @@ void loadPreferences()
// Subsurface webservice id is stored outside of the groups
GET_TXT("subsurface_webservice_uid", userid);
// but the related time / distance threshold (only used in the mobile app)
// are in their own group
s.beginGroup("locationService");
GET_INT("distance_threshold", distance_threshold);
GET_INT("time_threshold", time_threshold);
s.endGroup();
// GeoManagement
s.beginGroup("geocoding");
#ifdef DISABLED