Support gps coordinates for the location info

Sadly, no way to show them yet.  But it would be nice to let people
enter them (and it would be doubly nice to have a dive computer that
does it at the surface), and then perhaps just do the "point browser at
google maps" thing.

Saving/parsing tested by hand-feeding the location of Enenui (Molokini
Crater) from google maps by hand into my divelog.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Linus Torvalds 2011-09-15 18:16:07 -07:00
parent 3a6652634b
commit 5804c2970e
3 changed files with 45 additions and 1 deletions

1
dive.h
View file

@ -133,6 +133,7 @@ struct dive {
char *location;
char *notes;
char *divemaster, *buddy;
double latitude, longitude;
depth_t maxdepth, meandepth;
duration_t duration, surfacetime;
depth_t visibility;