Skip to content

Commit

Permalink
Switch to api.openstreetmap.org API host
Browse files Browse the repository at this point in the history
Use `api.openstreetmap.org/api/` -and HTTPS- instead of `www.openstreetmap.org/api/*`.

(Is: openstreetmap/operations#951)
  • Loading branch information
danieldegroot2 authored Oct 11, 2023
1 parent 6e04d64 commit 2b7c9a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export async function fetchNodeData(url: string): Promise<DefibrillatorData | nu
}

export async function fetchNodeDataFromOsm(nodeId: string): Promise<DefibrillatorData | null> {
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);
}
Expand Down Expand Up @@ -169,4 +169,4 @@ export function editDefibrillatorInOSM(auth: OSMAuth.OSMAuthInstance, changesetI
}
});
});
}
}

0 comments on commit 2b7c9a8

Please sign in to comment.