]> git.openstreetmap.org Git - nominatim.git/blob - nominatim/export.h
details page: differentiate between spheric distance and distance in meters
[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 struct export_data
9 {   
10     PGresult *          res;
11     PGresult *          resNames;
12     PGresult *          resAddress;
13     PGresult *          resExtraTags;
14 };
15
16 void nominatim_export(int rank_min, int rank_max, const char *conninfo, const char *structuredoutputfile);
17 void nominatim_exportCreatePreparedQueries(PGconn * conn);
18
19 xmlTextWriterPtr nominatim_exportXMLStart(const char *structuredoutputfile);
20 void nominatim_exportXMLEnd(xmlTextWriterPtr writer);
21
22 void nominatim_exportEndMode(xmlTextWriterPtr writer);
23
24 void nominatim_exportPlaceQueries(uint64_t place_id, PGconn * conn, struct export_data * querySet);
25 void nominatim_exportFreeQueries(struct export_data * querySet);
26
27 void nominatim_exportPlace(uint64_t place_id, PGconn * conn, 
28   xmlTextWriterPtr writer, pthread_mutex_t * writer_mutex, struct export_data * prevQuerySet);
29 const char * getRankLabel(int rank);
30
31 #endif