diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-06-10 11:45:34 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-06-10 11:51:15 -0700 |
commit | d541c2b601a82aad7ae8e0e419b172cc32f24a84 (patch) | |
tree | fd488a7983c0e27c274541676dfedcdd62cb3c04 /divesite.h | |
parent | 1ee447b5a95e97f5eb409ce67b0b06464138e572 (diff) | |
download | subsurface-d541c2b601a82aad7ae8e0e419b172cc32f24a84.tar.gz |
Add helper function to determine the distance between two points
And use this to find a dive site within a certain radius of a GPS fix.
This will be used to figure out if dive sites might be the same.
This uses a new Qt5 component (Positioning) which was added in Qt5.2.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'divesite.h')
-rw-r--r-- | divesite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/divesite.h b/divesite.h index ca650259a..79adf664a 100644 --- a/divesite.h +++ b/divesite.h @@ -53,6 +53,7 @@ uint32_t create_dive_site(const char *name); uint32_t create_dive_site_with_gps(const char *name, degrees_t latitude, degrees_t longitude); uint32_t get_dive_site_uuid_by_name(const char *name, struct dive_site **dsp); uint32_t get_dive_site_uuid_by_gps(degrees_t latitude, degrees_t longitude, struct dive_site **dsp); +uint32_t get_dive_site_uuid_by_gps_proximity(degrees_t latitude, degrees_t longitude, int distance, struct dive_site **dsp); bool dive_site_is_empty(struct dive_site *ds); #ifdef __cplusplus |