From fae1c42e9c7deb568695df31f3c42390f29612bf Mon Sep 17 00:00:00 2001 From: nobkd <44443899+nobkd@users.noreply.github.com> Date: Tue, 3 Oct 2023 22:57:14 +0200 Subject: [PATCH] fix: use nominatim api without trailing slash osm-search/Nominatim#3134 --- src/map/utils/read.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/utils/read.ts b/src/map/utils/read.ts index 8efb89f..1e720c4 100644 --- a/src/map/utils/read.ts +++ b/src/map/utils/read.ts @@ -3,7 +3,7 @@ import { parseDMS } from './parseDMS'; import { getMapZoom } from './zoom'; export const nominatimQ: string = - 'https://nominatim.openstreetmap.org/search/?limit=1&format=json&q='; + 'https://nominatim.openstreetmap.org/search?limit=1&format=json&q='; const cidMatch: RegExp = /^0x[\da-f]+:0x[\da-f]+$/i; const dmsMatch: RegExp = /^\d{1,2}°\d{1,2}'\d{1,2}\.\d"(N|S) \d{1,2}°\d{1,2}'\d{1,2}\.\d"(E|W)$/i;