#include "osm-db.h"
/* #define DEBUG_OSM */
+/* #define DEBUG_OSM_TIME */
#define OSM_PLACE_CACHE_MAX_ITEMS (64)
#define OSM_DB_PROGRESS_NUM (10000)
return NULL;
}
+#ifdef DEBUG_OSM_TIME
g_timer_start(dbt);
+#endif
while (SQLITE_ROW == sqlite3_step(sql.select_way2)) {
guint32 dist;
ways=g_list_prepend(ways, w);
}
+#ifdef DEBUG_OSM_TIME
g_timer_stop(dbt);
g_printf("Query took: %f sec, found: %d ways\n", g_timer_elapsed(dbt, &tms), wc);
+#endif
return ways;
}