]> git.street.me.uk Git - andy/viking.git/blame - test/geotag_read.c
Merge pull request #32 from davidedelvento/installnotes
[andy/viking.git] / test / geotag_read.c
CommitLineData
7e7854e8 1// Copyright: CC0
86f343b5
RN
2#include <stdio.h>
3#include <glib.h>
4#include <glib/gstdio.h>
5#include "geotag_exif.h"
6#include "vikcoord.h"
7
8int main(int argc, char *argv[])
9{
10#if !GLIB_CHECK_VERSION(2,36,0)
11 g_type_init ();
12#endif
13
14 if ( argv[1] ) {
15 struct LatLon ll = a_geotag_get_position ( argv[1] );
16 g_printf ( "%.6f %.6f\n", ll.lat, ll.lon );
17 }
18
19 return 0;
20}
21