WIP: cities
- imports cities from
GeoNames
TXT files in a localindex
file. - allows full text search queries using whoosh Python library
- adds a new endpoint to return the results based on a search query
/geocoding?q=Geneva
Limitations
- Searching for random cities hangs or takes very long
To improve
- Move the endpoint to
/api
? - Decide were to store the various files, cities and index. As suggested by Andre,
I suggest here directly: <https://gitlab.cern.ch/cara/cara/-/blob/master/cara> Since we already have data.py file with the current temp data hardcoded for Geneva - https://gitlab.cern.ch/cara/cara/-/blob/master/cara/data.py
- Better file path handling to correctly resolve paths to files from the root