16 double lat = 57.64911,
lon = 10.40744;
18 for (
int prec = -1; prec <= 11; ++prec) {
20 cout << prec <<
" " << georef <<
"\n";
25 string georef =
"NKLN2444638946";
29 Georef::Reverse(georef.substr(0, 2),
lat,
lon, prec);
30 cout << prec <<
" " << lat <<
" " << lon <<
"\n";
31 Georef::Reverse(georef.substr(0, 4),
lat,
lon, prec);
32 cout << prec <<
" " << lat <<
" " << lon <<
"\n";
33 Georef::Reverse(georef, lat, lon, prec);
34 cout << prec <<
" " << lat <<
" " << lon <<
"\n";
37 catch (
const exception&
e) {
38 cerr <<
"Caught exception: " << e.what() <<
"\n";
Header for GeographicLib::Georef class.
Namespace for GeographicLib.
Array< double, 1, 3 > e(1./3., 0.5, 2.)