Skip to content

Conversation

@JoseAndresVargas
Copy link

@JoseAndresVargas JoseAndresVargas commented Nov 13, 2025

Description

This PR adds a new feature for users to upload notes to OSM:

  • The scope of the permissions of the application was expanded to write notes, which would mean that the user will have to authorize the application to Upload GPS traces and Modify notes. If the user authorized the application of uploading traces, when the user tries to upload a note to OSM, the app will show an authorization error specifying that the user has to forget the credentials in order to give the app authorization to upload traces and notes.
  • A new async task "UploadToOpenStreetMapNotesTask" was made to create a new connection and upload a note to OSM using osmapi.
  • A new activity "OpenStreetMapNotesUpload" was created to check the user permissions, request them if needed and call the async task.
  • A context menu was added in the waypoint list of a trace, so that when the user long presses a waypoint, an option to upload as OSM Note gets shown. If pressed the following information gets presented:
    • A title at the top bar
    • Label
    • Note content (The text of the note)
    • Two buttons: Upload and cancel

Related issues

Pull Request Checklist

  • The PR is proposed to the DEVELOP branch.
  • The changes have been tested on the target Android API and minimum Android API.
  • Automated tests have been added (if applicable).
  • The feature is well documented.
  • There is a reference to the original ISSUE and related work.

Screenshots

authorization error authorization screen OSM note upload screen image

Additional notes

Work left

  • Add icon that shows when the user uploaded it as an OSMNote.
  • Improve the activity UI.
  • Refactor code.

@JoseAndresVargas JoseAndresVargas changed the base branch from master to develop November 13, 2025 00:07
@angoca
Copy link

angoca commented Nov 16, 2025

Not solvers always need a bit a context about the note, that's why many apps, as part of the note text, they include the name of the app, and even the version. This shows that the note was created on the ground.

@JoseAndresVargas
Copy link
Author

Not solvers always need a bit a context about the note, that's why many apps, as part of the note text, they include the name of the app, and even the version. This shows that the note was created on the ground.

Hello @angoca, I searched some examples, would it be a header/footer of the text? For example:


OSMTracker for Android™ - version (if is possible to use it as well)

Note text...


I also saw that some incorporated it as #nameOfApplication and some as via nameOfTheApplication. In your experience, which one works the best for note solvers?

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.

2 participants