Skip to content

Instantly share code, notes, and snippets.

@Rub21
Created February 14, 2025 14:31
Show Gist options
  • Save Rub21/54e28ac3cebe94a79e92fc7ce8919776 to your computer and use it in GitHub Desktop.
Save Rub21/54e28ac3cebe94a79e92fc7ce8919776 to your computer and use it in GitHub Desktop.
-- This is just an alias for the Nominatim themepark full topic
local flex = require('flex-base')
flex.load_topic('full')
flex.set_prefilters {
-- Source tags are very common but not used by Nominatim. Deleting them speeds up indexing.
delete_keys = {'source', 'source:*', '*:source'},
-- Date tags are essential for disambiguation.
extra_keys = {'start_date', 'start_date:edtf', 'end_date', 'end_date:edtf'}
}
return flex
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment