From c8ff007157a2085cf2a11afb7c08b6f8049e3b11 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:10:06 +0200 Subject: [PATCH] Switch to api.openstreetmap.org API host Use `api.openstreetmap.org/api/` -and HTTPS- instead of `www.openstreetmap.org/api/*`. (Is: https://github.com/openstreetmap/operations/issues/951) --- src/osm.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osm.ts b/src/osm.ts index 02a8f0c..e9fcc7c 100644 --- a/src/osm.ts +++ b/src/osm.ts @@ -23,7 +23,7 @@ export async function fetchNodeData(url: string): Promise { - const url = `https://www.openstreetmap.org/api/0.6/node/${nodeId}.json`; + const url = `https://api.openstreetmap.org/api/0.6/node/${nodeId}.json`; console.log("Request object info for node with osm id:", nodeId, " via url: ", url); return fetchNodeData(url); } @@ -169,4 +169,4 @@ export function editDefibrillatorInOSM(auth: OSMAuth.OSMAuthInstance, changesetI } }); }); -} \ No newline at end of file +}