From af4197700c6051b24b2dd38630336017c6f730a7 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:27:46 +0100 Subject: [PATCH 1/2] Switch to api.openstreetmap.org API host --- .../analyzer/engine/changes/changes/ChangeSetInfoApiImpl.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/scala/kpn/server/analyzer/engine/changes/changes/ChangeSetInfoApiImpl.scala b/server/src/main/scala/kpn/server/analyzer/engine/changes/changes/ChangeSetInfoApiImpl.scala index 6d798cf77..9749f3680 100644 --- a/server/src/main/scala/kpn/server/analyzer/engine/changes/changes/ChangeSetInfoApiImpl.scala +++ b/server/src/main/scala/kpn/server/analyzer/engine/changes/changes/ChangeSetInfoApiImpl.scala @@ -40,7 +40,7 @@ class ChangeSetInfoApiImpl(directory: File) extends ChangeSetInfoApi { else { val restTemplate = new RestTemplate - val url = s"https://www.openstreetmap.org/api/0.6/changeset/$changeSetId" + val url = s"https://api.openstreetmap.org/api/0.6/changeset/$changeSetId" val headers = new HttpHeaders() headers.setAccept(java.util.Arrays.asList(MediaType.TEXT_XML)) From 11559024c910003dc14c6c037b9a2e9147067fa1 Mon Sep 17 00:00:00 2001 From: danieldegroot2 <67521919+danieldegroot2@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:28:26 +0100 Subject: [PATCH 2/2] Switch to api.openstreetmap.org API host --- .../kpn/core/tools/support/FindDeletedNodesHistoryTool.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/main/scala/kpn/core/tools/support/FindDeletedNodesHistoryTool.scala b/server/src/main/scala/kpn/core/tools/support/FindDeletedNodesHistoryTool.scala index 9fbf6d4b0..0c1b46b14 100644 --- a/server/src/main/scala/kpn/core/tools/support/FindDeletedNodesHistoryTool.scala +++ b/server/src/main/scala/kpn/core/tools/support/FindDeletedNodesHistoryTool.scala @@ -173,7 +173,7 @@ object FindDeletedNodesHistoryTool { private def history(nodeId: Long): Unit = { val restTemplate = new RestTemplate - val url = s"https://www.openstreetmap.org/api/0.6/node/$nodeId/history" + val url = s"https://api.openstreetmap.org/api/0.6/node/$nodeId/history" val headers = new HttpHeaders() headers.setAccept(java.util.Arrays.asList(MediaType.TEXT_XML)) headers.setAcceptCharset(java.util.Arrays.asList(Charset.forName("UTF-8")))