Skip to content

WIP: cities

Nicola Tarocco requested to merge cities into master
  • imports cities from GeoNames TXT files in a local index 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

Screenshot_2021-06-21_at_20.37.19

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

Merge request reports