Replaced config dependency with options argument.

This commit is contained in:
DebaucheryLibrarian 2024-10-31 03:18:27 +01:00
parent 83294ec6f4
commit 7a39529e2c
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ export async function resolvePlace(query, context, options = {}) {
// https://operations.osmfoundation.org/policies/nominatim/
const res = await context.unprint.get(`https://nominatim.openstreetmap.org/search?q=${encodeURI(query)}&format=json&accept-language=en&addressdetails=1`, {
headers: {
'User-Agent': context.config.location.userAgent,
'User-Agent': options.userAgent,
},
interval: 1000,
concurrency: 1,