File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -961,6 +961,7 @@ int main(int argc, char* argv[])
961961 std::ifstream fin (postcodes_fname.c_str ());
962962 osmscout::LocationDescriptionService locationService (database);
963963 std::string line;
964+ size_t postal_counter=0 ;
964965 while (getline (fin,line))
965966 {
966967 boost::tokenizer< boost::escaped_list_separator<char > > tok (line);
@@ -975,11 +976,12 @@ int main(int argc, char* argv[])
975976 std::list<osmscout::LocationDescriptionService::ReverseLookupResult> results;
976977 {
977978 static int o = 0 ;
978- if (o % 1000 == 0 ) {
979- std::cout << " . " << std::flush ;
980- o = 1 ;
979+ if (o % 10000 == 0 ) {
980+ std::cout << " Postal codes parsed: " << postal_counter << std::endl ;
981+ o = 0 ;
981982 }
982983 ++o;
984+ ++postal_counter;
983985 }
984986 if (locationService.ReverseLookupRegion (coordinates, results))
985987 if (results.size () > 0 )
@@ -993,7 +995,9 @@ int main(int argc, char* argv[])
993995 c.latitude = latitude;
994996 c.longitude = longitude;
995997 additional_postal_codes[admin].push_back (c);
996- std::cout << code << " " << r.adminRegion ->name << " " << r.adminRegion ->object .GetFileOffset () << " " << r.adminRegion ->parentRegionOffset << " " << results.size () << " \n " ;
998+ // std::cout << code << " " << r.adminRegion->name << " "
999+ // << r.adminRegion->object.GetFileOffset() << " " << r.adminRegion->parentRegionOffset << " "
1000+ // << results.size() << "\n";
9971001 }
9981002 }
9991003 }
You can’t perform that action at this time.
0 commit comments