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

Feature Request: filter by type #65

Open
hutima opened this issue Jul 1, 2022 · 4 comments
Open

Feature Request: filter by type #65

hutima opened this issue Jul 1, 2022 · 4 comments

Comments

@hutima
Copy link

hutima commented Jul 1, 2022

I understand this is mostly used for strava, I personally use it for arc.app exports (https://www.bigpaua.com/arcapp/) lifelogging and it would be great if filtering by type of track (walking / running / etc) could be added

@erik
Copy link
Owner

erik commented Jul 4, 2022

What format does arc.app use? Sounds like a nice feature, but it seems that the GPX spec doesn't have an official way to indicate activity type, so it might not be reliable to use the various extensions. FIT files on the other hand should work

@hutima
Copy link
Author

hutima commented Jul 4, 2022

It's a .gpx file as an export. It uses the <type></type> flag that seems to also be present in strava. Strava seems to have a numeric index in it's GPX file exports that isn't officially published but that I can see on stackoverflow: https://stackoverflow.com/questions/61903437/what-do-the-strava-gpx-type-type-elements-mean
(e.g. my last run export from strava has <type>9</type>)

While the monthly GPX files exported by Arc are explicitly stated in the flag (eg. <type>Car</type> )

types seem to be defined per <trk></trk> and the arc app exports are just a list of <trk></trk> within <gpx></gpx>

@erik
Copy link
Owner

erik commented Jul 5, 2022

Nice, thanks for the reference. My impression is that it would be too much effort to try to maintain a consistent activity mapping across all possible GPX creators, but if we had the filter UI use only what's contained in the <type> field, I think that could be reasonable.

But - that does mean that for Strava, you would be filtering to e.g. type=9, which is a terrible UI.

@hutima
Copy link
Author

hutima commented Jul 5, 2022

Best way if it’s possible is probably to filter by a distinct list of types in the uploaded files and if it’s numeric, rename it as Strava does according to that post in stackoverflow

in the end the primary use case for most people using this is strava, so if you’re willing to add the functionality, it should probably be built with that in mind first, I can always edit type flags to match strava in uploaded gpx files

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

No branches or pull requests

2 participants