Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to api.openstreetmap.org API host #171

Closed
danieldegroot2 opened this issue Oct 11, 2023 · 3 comments
Closed

Switch to api.openstreetmap.org API host #171

danieldegroot2 opened this issue Oct 11, 2023 · 3 comments

Comments

@danieldegroot2
Copy link
Contributor

danieldegroot2 commented Oct 11, 2023

Use api.openstreetmap.org/api/ -and HTTPS- instead of www.openstreetmap.org/api/*.

(Is: openstreetmap/operations#951)

In 2b7c9a8 I changed the only explicit url, but there seem to be urls using the base www.openstreetmap.org in the path parameter. They should be changed too.

cc: @ttomasz

@starsep
Copy link
Member

starsep commented Oct 11, 2023

Code is at https://github.com/openstreetmap-polska/openaedmap-frontend/blob/main/src/osm.ts
Most of the API calls is done using https://github.com/osmlab/osm-auth
We don't specify host there, only path.

We can fix this line:

const url = `https://www.openstreetmap.org/api/0.6/node/${nodeId}.json`;

@danieldegroot2
Copy link
Contributor Author

That is what linked commit in dev does, I think.

@danieldegroot2
Copy link
Contributor Author

Since other API calls are done using osm-auth I will close this issue here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants