mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-10-01 13:09:34 +02:00
otel key fix
This commit is contained in:
1 parent
ec8bb9cdca
commit
dafca17132
1 file changed
+3
-3
+3
-3
@@ -194,9 +194,9 @@ const start = async () => {
|
|||||||
const { query, source } = request.query as { query: string, source?: string };
|
const { query, source } = request.query as { query: string, source?: string };
|
||||||
const geoType = classifyGeoQuery(query);
|
const geoType = classifyGeoQuery(query);
|
||||||
request.meta = {
|
request.meta = {
|
||||||
geocodeSource: geoType === 'zip_code' ? 'local_zip' : 'nominatim',
|
'geocode.source': geoType === 'zip_code' ? 'local_zip' : 'nominatim',
|
||||||
geocodeInitiator: source ?? '',
|
'geocode.initiator': source ?? '',
|
||||||
geocodeQueryType: geoType,
|
'geocode.query_type': geoType,
|
||||||
};
|
};
|
||||||
reply.header('Cache-Control', 'public, max-age=86400, s-maxage=86400');
|
reply.header('Cache-Control', 'public, max-age=86400, s-maxage=86400');
|
||||||
const result = await nominatim.geocodePhrase(query, false);
|
const result = await nominatim.geocodePhrase(query, false);
|
||||||
|
|||||||
Reference in new issue
Block a user