diff --git a/geo.mjs b/geo.mjs index af36bf8..df12279 100644 --- a/geo.mjs +++ b/geo.mjs @@ -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,