1 #ifndef _OSM_DB_IMPORT_H
2 #define _OSM_DB_IMPORT_H
8 /* POI or Place node extra data */
9 typedef struct _node_data node_data;
20 typedef struct _node node;
29 /* Way data structure */
30 typedef struct _way_data way_data;
37 guint32 isin_c; /* Country */
38 guint32 isin_p; /* Primary (city, village) place */
44 typedef struct _way way;
61 /* Struct with import request */
62 typedef struct _osm_import_data_req osm_import_data_req;
63 struct _osm_import_data_req {
66 GSourceFunc progress_cb;
70 void osm_import_set_bbox(gboolean use_bb, gdouble latmin, gdouble lonmin, gdouble latmax, gdouble lonmax);
71 gboolean osm_import(const gchar *planet, const gchar *database);
72 gboolean osm_import_bg(const gchar *planet, const gchar *database, GSourceFunc progress_cb, GSourceFunc done_cb);
73 gint osm_import_join_bg(void);