Skip to content

Commit

Permalink
Merge pull request #332 from danieldegroot2/api-url
Browse files Browse the repository at this point in the history
Switch to api.openstreetmap.org API host
  • Loading branch information
vmarc authored Nov 2, 2023
2 parents c339ef9 + 1155902 commit 4c7daec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 4c7daec

Please sign in to comment.