Skip to content

read QueryService filename from pelias/config#122

Merged
missinglink merged 1 commit intomasterfrom
config
Sep 30, 2025
Merged

read QueryService filename from pelias/config#122
missinglink merged 1 commit intomasterfrom
config

Conversation

@missinglink
Copy link
Member

@missinglink missinglink commented Sep 30, 2025

this PR includes functionality for reading configuration from pelias/config.

when an object is defined in pelias.json at the path services.spatial, the properties datapath and files are used to determine the location of the database file to use for the QueryService (which is also the case for the http server).

note: that the option pelias: true must be passed when creating the QueryService, the default is not to use the config, as it wouldn't make sense for the ImportService since it would likely clobber downloads.

note: explicitly specifying a filename value takes precedence over pelias config

@missinglink missinglink merged commit 901aa61 into master Sep 30, 2025
5 checks passed
@missinglink missinglink deleted the config branch September 30, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant