Skip to content

Switch to api.openstreetmap.org API host#210

Open
danieldegroot2 wants to merge 2 commits intoOPENER-next:masterfrom
danieldegroot2:api-url
Open

Switch to api.openstreetmap.org API host#210
danieldegroot2 wants to merge 2 commits intoOPENER-next:masterfrom
danieldegroot2:api-url

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

Comments