]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/export.h
postcode/zipcode improvements, finish work on handling extratags
[nominatim.git] / nominatim / export.h
1 #ifndef EXPORT_H
2 #define EXPORT_H
3
4 #include <libxml/encoding.h>
5 #include <libxml/xmlwriter.h>
6 #include <stdint.h>
7
8 void nominatim_export(int rank_min, int rank_max, const char *conninfo, const char *structuredoutputfile);
9 void nominatim_exportCreatePreparedQueries(PGconn * conn);
10 xmlTextWriterPtr nominatim_exportXMLStart(const char *structuredoutputfile);
11 void nominatim_exportXMLEnd(xmlTextWriterPtr writer);
12 void nominatim_exportPlace(uint64_t place_id, PGconn * conn, xmlTextWriterPtr writer, pthread_mutex_t * writer_mutex);
13 const char * getRankLabel(int rank);
14
15 #endif