diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-07-14 11:35:04 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-07-14 11:52:17 -0700 |
commit | 8c0d0de2e62356e1bbdad97843d185a37973c5c7 (patch) | |
tree | 0179eee9ba82a843f676551e61b9886930c9ceab /divesite.h | |
parent | e82f8ea565a68aa1fa980cb12c1f136b1d4a57f9 (diff) | |
download | subsurface-8c0d0de2e62356e1bbdad97843d185a37973c5c7.tar.gz |
Location completer: give distance if known
If both the displayed dive and the dive site which is shown as a potential
completion have a GPS fix, indicate the distance.
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 306272e96..3447d1836 100644 --- a/divesite.h +++ b/divesite.h @@ -59,6 +59,7 @@ uint32_t get_dive_site_uuid_by_gps_proximity(degrees_t latitude, degrees_t longi bool dive_site_is_empty(struct dive_site *ds); void copy_dive_site(struct dive_site *orig, struct dive_site *copy); void clear_dive_site(struct dive_site *ds); +unsigned int get_distance(degrees_t lat1, degrees_t lon1, degrees_t lat2, degrees_t lon2); #ifdef __cplusplus } |