Skip to content

Commit bf0f8c9

Browse files
committed
Reduced output size for --boundaries
1 parent f597126 commit bf0f8c9

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

example/mapcode.cpp

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -533,8 +533,8 @@ int main(const int argc, const char** argv)
533533
generateAndOutputMapcodes(maxLat, maxLon, 0, extraDigits);
534534

535535
// Try JUST inside.
536-
double factor = 1.0;
537-
for (int j = 1; j < 6; ++j) {
536+
double factor = 10.0;
537+
for (int j = 1; j < 2; ++j) {
538538

539539
double d = 1.0 / factor;
540540
generateAndOutputMapcodes(minLat + d, minLon + d, 0, extraDigits);
@@ -550,12 +550,6 @@ int main(const int argc, const char** argv)
550550
factor = factor * 10.0;
551551
}
552552

553-
// Try 22m outside.
554-
generateAndOutputMapcodes(minLat - 22, (maxLon - minLon) / 2, 0, extraDigits);
555-
generateAndOutputMapcodes(minLat - 22, (maxLon - minLon) / 2, 0, extraDigits);
556-
generateAndOutputMapcodes(maxLat + 22, (maxLon - minLon) / 2, 0, extraDigits);
557-
generateAndOutputMapcodes(maxLat + 22, (maxLon - minLon) / 2, 0, extraDigits);
558-
559553
if ((i % SHOW_PROGRESS) == 0) {
560554
showProgress(i);
561555
}

0 commit comments

Comments
 (0)