Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

Request for a way of restricting the trackpoints API call to a single user #4054

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 3 comments

Comments

@openstreetmap-trac
Copy link

Reporter: SomeoneElse
[Submitted to the original trac issue database at 3.00pm, Wednesday, 19th October 2011]

(this came out of a discussion on IRC - anyone actually familar with the API feel free to have a laugh and then correct this to say what I actually meant it to)

From a user perspective, the problem is "there's no equivalent to G (capital G) in Potlatch 1". In P1 "g" loads all traces in the current bbox (well, most recent ones first) and "G" is similar but for my traces.

As I understand it* the problem is that the track_points_ call isn't possible to be restricted to the current user.

*from reading an IRC message from RichardF.

@openstreetmap-trac
Copy link
Author

Author: SomeoneElse
[Added to the original trac issue at 3.52pm, Wednesday, 19th October 2011]

A workaround for this in P2 itself might be to have a way of loading the last N ways for a user (where N is small enough not to overload the API) loading them in reverse ID order.

This wouldn't restrict to a BBOX of course, but in the absence of an external change would provide nearly the same functionality.

@openstreetmap-trac
Copy link
Author

Author: TomH
[Added to the original trac issue at 7.45pm, Wednesday, 19th October 2011]

Potlatch 2 is red herring - this is really just a request for a way to limit the trackpoints API call to only returning a single user's trackpoints.

As a note to anybody thinking about implementing this I would point out there are serious performance issues that need to be considered as each point has to be joined to the files table to find out who uploaded it.

@openstreetmap-trac
Copy link
Author

Author: mmd
[Added to the original trac issue at 7.22pm, Wednesday, 3rd June 2020]

Duplicate of openstreetmap/openstreetmap-website#2395

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant