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 #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

danieldegroot2
Copy link

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

(Is: openstreetmap/operations#951)

@7h30n3
Copy link
Member

7h30n3 commented Oct 12, 2023

Tested and LGTM!

@Robbendebiene
Copy link
Member

Just as a reminder for us: We also would have to update

const osmServer = bool.fromEnvironment('IS_RELEASE', defaultValue: false)
? 'www.openstreetmap.org'
: 'master.apis.dev.openstreetmap.org';

This global variable is used by the OAuth OSMAuthenticationAPI as well, which as some comments state does not work on api.openstreetmap.org

It is also used to link to the user profile which will likewise break:

return await launchUrl(
Uri.https(osm_config.osmServer, '/user/${_authenticatedUser.value!.name}'),
mode: LaunchMode.externalApplication,
);

Additionally an answer to openstreetmap/operations#951 (comment) would be much appreciated.

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

Successfully merging this pull request may close these issues.

3 participants