mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-06-26 10:11:30 +00:00
Add small API to do geo query.
This is a small quick and dirty API to do geo query. It is not possible with this API to do a query search and a geo search. It's either one or the other. We should think about a better global API to do searching and provide both of them in the same time (libzim does it).
This commit is contained in:
@ -67,6 +67,10 @@ class Searcher
|
||||
unsigned int resultStart,
|
||||
unsigned int resultEnd,
|
||||
const bool verbose = false);
|
||||
void geo_search(float latitude, float longitude, float distance,
|
||||
unsigned int resultStart,
|
||||
unsigned int resultEnd,
|
||||
const bool verbose = false);
|
||||
void suggestions(std::string& search, const bool verbose = false);
|
||||
Result* getNextResult();
|
||||
void restart_search();
|
||||
|
Reference in New Issue
Block a user