From aa058bd7a311e60dda83ead8a4e7e84f8cf1356d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A2u=20Cao?= Date: Tue, 24 Feb 2026 10:41:54 +0400 Subject: [PATCH] Include places that only have localized names For example "name" absent, but "name:en" present --- app/services/osm.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/services/osm.js b/app/services/osm.js index 9028cc7..8cff92a 100644 --- a/app/services/osm.js +++ b/app/services/osm.js @@ -36,19 +36,19 @@ export default class OsmService extends Service { 'building', 'landuse', 'public_transport', - 'aeroway' - ] - const typeKeysQuery = [`~"^(${typeKeys.join("|")})$"~".*"`]; + 'aeroway', + ]; + const typeKeysQuery = [`~"^(${typeKeys.join('|')})$"~".*"`]; const query = ` [out:json][timeout:25]; ( node(around:${radius},${lat},${lon}) - [${typeKeysQuery}][name~"."]; + [${typeKeysQuery}][~"^name"~"."]; way(around:${radius},${lat},${lon}) - [${typeKeysQuery}][name~"."]; + [${typeKeysQuery}][~"^name"~"."]; relation(around:${radius},${lat},${lon}) - [${typeKeysQuery}][name~"."]; + [${typeKeysQuery}][~"^name"~"."]; ); out center; `.trim();