1 using namespace System;
9 double lat = 57.64911,
lon = 10.40744;
11 for (
int prec = -1; prec <= 11; ++prec) {
13 Console::WriteLine(String::Format(
"Precision: {0} Georef: {1}", prec, georef));
18 String^ georef =
gcnew String(
"NKLN2444638946");
21 Georef::Reverse(georef->Substring(0, 2),
lat,
lon, prec,
true);
22 Console::WriteLine(String::Format(
"Precision: {0} Latitude: {1} Longitude: {2}", prec,
lat,
lon));
23 Georef::Reverse(georef->Substring(0, 4),
lat,
lon, prec,
true);
24 Console::WriteLine(String::Format(
"Precision: {0} Latitude: {1} Longitude: {2}", prec,
lat,
lon));
25 Georef::Reverse(georef,
lat,
lon, prec,
true);
26 Console::WriteLine(String::Format(
"Precision: {0} Latitude: {1} Longitude: {2}", prec,
lat,
lon));
30 Console::WriteLine(String::Format(
"Caught Exception {0}",
e->Message));