From 2aab5cb633259d731375e186cd8012d90062a395 Mon Sep 17 00:00:00 2001 From: Peter Date: Wed, 2 Aug 2023 23:08:29 +0200 Subject: [PATCH] geocoding: hide county and boundary results --- src/api/Api.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/api/Api.ts b/src/api/Api.ts index 0186dc13..bce0f3c5 100644 --- a/src/api/Api.ts +++ b/src/api/Api.ts @@ -91,6 +91,11 @@ export class ApiImpl implements Api { const langAndCountry = getTranslation().getLang().split('_') url.searchParams.append('locale', langAndCountry.length > 0 ? langAndCountry[0] : 'en') + // routing makes not much sense between areas and it is unclear if the center is on a road + url.searchParams.append('osm_tag', '!place:county') + url.searchParams.append('osm_tag', '!boundary') + url.searchParams.append('osm_tag', '!historic') + const response = await fetch(url.toString(), { headers: { Accept: 'application/json' }, })