-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
Overview of road types per route #1364
Comments
Hi, The different surfaces are for each world are defined here: https://github.com/andipaetzold/zwiftmap/tree/main/frontend/src/constants/worldConfigs. After running zwiftmap/frontend/src/components/SurfaceListItem/index.tsx Lines 32 to 36 in c33696d
I can try to find time over the weekend to extract the stats, but maybe you can try it yourself to also reexport the data after future map updates. Just curious, which project are you planning to use the data for? |
I had a look at it, but I have no JS experience so I would probably have to learn some basics first. It's (hopefully) not going to be a project, I just would like to have an overview of the routes so I can easily pick a nice route with no dirt. I really dislike dirt roads :D If I could have all of this in Excel, I might be able to do some kind of sorting + filtering based on road types, elevation and time since last riding to automatically suggest some routes. Because Tempus Fugit becomes boring eventually ;) |
@ptoews Here you go: route-surfaces.csv Code in #1396 |
@Strajk Awesome idea! I think this would be addition to ZwiftMap. Feel free to open a PR.
Would you build the chart to render the total route surface stats or show the surfaces along the route? Option 2 might look messy for the Temple KOM with many surface changes |
@andipaetzold Awesome, thank you so much! @Strajk Good to hear I'm not the only dirt hater 😆 Your visualization look great! My only suggestion would be to consider that there are many bars with many colors in small space. GitHub solves this with a legend including values. Maybe the details could be shown on the map, as @andipaetzold suggests. |
@ptoews Not sure if you know, but the route surfaces can already be shown on the map via the menu on the top right. Quite hidden feature tbh. Most changes happen between dirt and wood because of the bridges... |
@andipaetzold the "event power-ups" chart is exactly what I was trying to accomplish 👍 thx for the pointer!
yea I totally agree with the potential messiness of "along the route", Komoot solves it by 2 charts – one small for a total overview and one large for along the route. Right now, it's showing the total route, which I believe is clearer UI. But, the position right below the altitude could make users think it's "along the route" – so I'm not quite happy with that. I'll use it for a few days and think about a better solution 💡 |
Hi,
I would like to have an overview for each route what road types they are made of and what their proportion is. So for example percentages for tarmac, brick, dirt etc.
I can of course click through all routes, but I want to filter or sort as well.
Since this is probably quite complicated for the GUI, is it possible to export this kind of data e.g. into a CSV?
Thanks in advance!
The text was updated successfully, but these errors were encountered: