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

Add an API-endpoint to set the user home location #3395

Open
pietervdvn opened this issue Dec 13, 2021 · 3 comments
Open

Add an API-endpoint to set the user home location #3395

pietervdvn opened this issue Dec 13, 2021 · 3 comments
Labels
api Related to the XML or JSON APIs enhancement Improvements and new feature requests

Comments

@pietervdvn
Copy link

Description

Hi,

While a third-party application can currently read the user home location, it can not currently set the home location. Setting the home location is hidden away in the settings - as a result very little people use this feature.

By providing an API-endpoint, other applications would be able to set this and provide a better experience for all.

Screenshots

No response

@tomhughes
Copy link
Member

What sort of application would (reasonably) want to do that though? We don't allow any other user details to be set via the API so what makes the location special?

@pietervdvn
Copy link
Author

pietervdvn commented Dec 13, 2021

I'm asking this as dev from MapComplete. I do show a home icon and 'zoom to home location' button.

However, I'd also love to set it via the same application without sending them to a different gui.
And other settings might be intersting to set too, e.g. the profile.

@tordans
Copy link
Contributor

tordans commented Apr 12, 2024

I just ran into this general issue. We want to give users a quick way to add a user description to their profile.

What sort of application would (reasonably) want to do that though?

Our use case is: We have an app about bike infrastructure and show OSM notes and allow to add OSM notes via the app. The feedback from the OSM community is, that users of our app do not provide enough context on who they are. The main issue is the empty user profile description.

So what we wanted to do: Check if the our user – who is logged into osm via oAuth2 – has a profile description. If the description is empty, we wanted to show a form with a suggestion on what to write. Something like "This account is managed by department X of Y in the context of the bicycle infrastructure project at URL Z."

To make sure our users actually add this data to their OSM profile and make the whole UX as nice as possible, we would want to write the profile description via API.


If such an API gets green light @tomhughes I would look into adding the API endpoints to do so (which should have similarities to #4605).

@mmd-osm mmd-osm added api Related to the XML or JSON APIs enhancement Improvements and new feature requests labels Jun 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Related to the XML or JSON APIs enhancement Improvements and new feature requests
Projects
None yet
Development

No branches or pull requests

4 participants