mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
1ee447b5a9
commit
d541c2b601
5 changed files with 36 additions and 2 deletions
|
@ -74,4 +74,7 @@ slots:
|
|||
};
|
||||
|
||||
#endif // NO_MARBLE
|
||||
|
||||
extern "C" double getDistance(int lat1, int lon1, int lat2, int lon2);
|
||||
|
||||
#endif // GLOBE_H
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue