/* Get Way ref and int_ref */
DB_PREP(db, "select ref,int_ref from way_ref where rid=?", sql.select_way_ref);
+/* Get way all way nodes */
+DB_PREP(db, "select wn.f,ilat,ilon from way_n2n as wn,nodes where wid=? and wn.f=nodes.nid", sql.select_way_nodes);
+
/* Get next, prev node + way information. For routing. */
DB_PREP(db, "select w.wid,w.type,w.flags,w.speed,n.nid,n.rlat,n.rlon,nn.f,nn.t,n.f,n.l "
"from way as w, nodes as n, way_n2n as nn where w.wid=nn.wid and nn.f=n.nid and nn.f=?",
sqlite3_clear_bindings(sql.select_way_nodes);
if (SQLITE_OK != sqlite3_bind_int(sql.select_way_nodes, 1, w->id)) {
- g_warning("Failed to bind values way nodes");
+ g_warning("Failed to bind values for way nodes");
return FALSE;
}