sqlite3_prepare_v2(db, "update nodes set l=l+1 where nid=?", -1, &sql.update_node, NULL);
/* Places */
-sqlite3_prepare_v2(db, "insert or replace into places (nid,type,name,isin) values (?, ?, ?, ?)", -1, &sql.insert_place, NULL);
+sqlite3_prepare_v2(db, "insert or replace into places (nid,type,name,isin_c,isin_p) values (?, ?, ?, ?, ?)", -1, &sql.insert_place, NULL);
sqlite3_prepare_v2(db, "delete from places", -1, &sql.delete_place, NULL);
/* POI nodes */
{
#ifdef VERBOSE
g_assert(w);
-g_printf("Way #%d(N:%d T:%d S:%d IS: %d): %s [%s:%s:%s]\n",
+g_printf("Way #%d(N:%d T:%d S:%d IS: %d/%d): %s [%s:%s:%s]\n",
w->id,
g_slist_length(w->nodes),
w->type,
w->data ? w->data->speed : 0,
- w->data ? w->data->isin : 0,
+ w->data ? w->data->isin_c : -1,
+ w->data ? w->data->isin_p : -1,
w->data ? w->data->name ? w->data->name : "" : "",
w->flags & W_ONEWAY ? "-" : "=",
w->flags & W_ROUNDABOUT ? "O" : "-",
{
#ifdef VERBOSE
g_assert(n);
-g_printf("Node #%d: T:%d IS: %d [%s]\n",
+g_printf("Node #%d: T:%d IS: %d/%d [%s]\n",
n->id,
n->type,
- n->data ? n->data->isin : 0,
+ n->data ? n->data->isin_c : -1,
+ n->data ? n->data->isin_p : -1,
n->data ? n->data->name : "");
#endif
}