hholzgra / ocitysmap

Fork of ocitysmap repository at savannah.nongnu.org
Other
35 stars 12 forks source link

Make Street Index contents configurable #44

Open hholzgra opened 2 years ago

hholzgra commented 2 years ago

Right now the extra index entries like amenities and villages are hard coded, making these configurable via index style files would be much more flexible and convenient, allowing for new index categories more or less on the fly

hholzgra commented 2 years ago

The three different functions that retrieve and set up the street, amenities and villages indexes have now been refactored to use the same SQL query generating code.

This is a first step towards making these steps configurable instead of being fully defined in Python and SQL code only.

Next steps will be to apply even more refactoring to unify the Python part processing the SQL query results, too, and then the final step will be to come up with a configuration file format for specifying index generators.