this post was submitted on 27 Jul 2024
3 points (100.0% liked)

OpenStreetMap + App = OsmAnd!

214 readers
1 users here now

OsmAnd is a great open source Maps mobile app that uses OpenStreetMap!

founded 4 years ago
MODERATORS
3
Creating (adding) POIs (programming.dev)
submitted 1 month ago* (last edited 1 month ago) by [email protected] to c/[email protected]
 

I would like to contribute to the maps for my area by creating and uploading various POIs as I come across them in my daily use. To get familiar with the system I decided to add a known to me florist. I found the exact location using google maps, opened it in OsmAnd+, and went through the process to add all its details (address, phone, website, type, etc). However when I decide to upload it, signing in with username and password, I get the error in the image attached. Anyone know what the problem is and how I can solve it?

Edit: App Info OsmAnd+ 4.6.12, Released: 2024-01-16

top 8 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 1 month ago (1 children)

Starting back in May, OpenStreetMap went through a transition to require OAuth 2.0 for authentication. Some software didn't get updated until close to the deadline. In particular, OsmAnd was updated around February with release later. Your January version lacked this required update.

[–] [email protected] 1 points 1 month ago

Well it seems then that the fdroid repo is outdated, or at least in Droidify which I use for fdroid repos. Hopefully it catches up soon.

Thanks for the clarification

[–] [email protected] 1 points 1 month ago (1 children)

I also run into this issue several times. I could solve it by redo the login in the OpenStreetMap plugin setting

[–] [email protected] 2 points 1 month ago (1 children)

I can login to the site but when I try to login to the plugin I get this message popping up and disappearing soon after:

https://api.openstreetmap.org/api/0.6/user/details

Then im still logged out. Any idea?

[–] [email protected] 1 points 1 month ago (1 children)

When login through the plugin the browser should pop up where you need to confirm the login on openstreetmap.org. (i think this process is called OAuth)

You can then check if this is succesfull on https://www.openstreetmap.org/oauth2/authorized_applications

You should see OsmAnd there and how many days the login procedure was performed.

If this is succesfull, then its a problem with OsmAnd. If you have another old Android you can maybe try around several times with reinstallation?

[–] [email protected] 1 points 1 month ago* (last edited 1 month ago) (1 children)

Hmmm I went to the page and it seems I need to manually register the app to be able to make api calls. Would I be wrong in assuming the redirect uri needs to be the one I got in the error message popup when trying to sign in through the app?

Edit: seems it doesnt work. I registered an app in openstreetmaps.org with that and nothing changes.

[–] [email protected] 1 points 1 month ago (1 children)

I registered an app in openstreetmaps.org with that and nothing changes.

No, there is no need to manually register an app. This is the feature when develope a new app by yourself to make it known to openstreetmap.org

Would I be wrong in assuming the redirect uri needs to be the one I got in the error message popup when trying to sign in through the app

not sure. If you don't have another phone to test, maybe you can try testing the login with another openstreetmap app like StreetComplete, Vespucci or Organic Maps?

[–] [email protected] 2 points 1 month ago

I just downloaded streetcomplete and the login works there. It might be a good idea to file an issue on the github for osmand at this point. Thanks for all your help! :)