Changed styling of mtb trails to better differenciate them from cycleways #9887

Open
IsiGebauer wants to merge 20 commits from IsiGebauer/StylingMtbTrails into master
IsiGebauer commented 2024-12-17 21:25:59 +00:00 (Migrated from github.com)

I added a tag "_mtb_rating" (from easy to expert) which is a combination of the OSM-Tag "mtb:scale" (from S0-S5), "mtb:scale:imba" (from 1=green to 4=double back diamond) and the smoothness of the track.
At the moment I defined an

  1. "_mtb_rating" as "easy" if a cycleway has an "mtb:score" of "S0", an "mtb:scale:imba"-Score of 1 or a "smoothness"-Score of "bad" or "very_bad"
  2. "_mtb_rating" as "intermediate" if a cycleway has an "mtb:score" of "S1" or "S2", an "mtb:scale:imba"-Score of 2 or a "smoothness"-Score of "horrible"
  3. "_mtb_rating" as "difficult" if a cycleway has an "mtb:score" of "S3", an mtb:scale:imba"-Score of 3 or a "smoothness"-Score of "very_horrible"
  4. "_mtb_rating" as "expert" if a cycleway has an "mtb:score" of "S4" or "S5", an mtb:scale:imba"-Score of 4

I take the maximum of the resulting rating from the "mtb:score", "mtb:score:imba" and "smoothness".
I am currently still working on the styling, below you can find a small screenshot of an intermediate and a difficult trail.
Screenshot from 2024-12-17 22-23-45

This solves the issue #9768

I added a tag "_mtb_rating" (from easy to expert) which is a combination of the OSM-Tag "mtb:scale" (from S0-S5), "mtb:scale:imba" (from 1=green to 4=double back diamond) and the smoothness of the track. At the moment I defined an 1. "_mtb_rating" as "easy" if a cycleway has an "mtb:score" of "S0", an "mtb:scale:imba"-Score of 1 or a "smoothness"-Score of "bad" or "very_bad" 2. "_mtb_rating" as "intermediate" if a cycleway has an "mtb:score" of "S1" or "S2", an "mtb:scale:imba"-Score of 2 or a "smoothness"-Score of "horrible" 3. "_mtb_rating" as "difficult" if a cycleway has an "mtb:score" of "S3", an mtb:scale:imba"-Score of 3 or a "smoothness"-Score of "very_horrible" 4. "_mtb_rating" as "expert" if a cycleway has an "mtb:score" of "S4" or "S5", an mtb:scale:imba"-Score of 4 I take the maximum of the resulting rating from the "mtb:score", "mtb:score:imba" and "smoothness". I am currently still working on the styling, below you can find a small screenshot of an intermediate and a difficult trail. ![Screenshot from 2024-12-17 22-23-45](https://github.com/user-attachments/assets/831db9fb-2ce2-4169-b9fa-57776212229d) This solves the issue [#9768]([https://git.omaps.dev/organicmaps/organicmaps/issues/9768](https://git.omaps.dev/organicmaps/organicmaps/pulls/9887#9768))
pastk reviewed 2024-12-18 19:16:34 +00:00
pastk left a comment
Member

Thanks for starting this!

Thanks for starting this!

it'd be good to put unrelated changes into a separate PR

it'd be good to put unrelated changes into a separate PR

classificator.txt is an auto-generated file

classificator.txt is an auto-generated file

"S" values seem to be never used, see https://taginfo.openstreetmap.org/keys/mtb%3Ascale#values

"S" values seem to be never used, see https://taginfo.openstreetmap.org/keys/mtb%3Ascale#values
pastk reviewed 2024-12-23 18:15:14 +00:00

I think there will be a lot of cases with psurface-unpaved_bad and _mtb_rating-* at the same time, so the factors will multiply (which is unwanted)

I think the most simple solution is to ensure there is a psurface-unpaved_bad when mtb rating is present (even if there are no surface & smoothness tags).
This way all mtb trails will be considered as "slow" and normally the router will avoid to route all the cyclists there

I think there will be a lot of cases with `psurface-unpaved_bad` and `_mtb_rating-*` at the same time, so the factors will multiply (which is unwanted) I think the most simple solution is to ensure there is a `psurface-unpaved_bad` when mtb rating is present (even if there are no surface & smoothness tags). This way all mtb trails will be considered as "slow" and normally the router will avoid to route all the cyclists there
This repo is archived. You cannot comment on pull requests.
No reviewers
No labels
Accessibility
Accessibility
Address
Address
Android
Android
Android Auto
Android Auto
Android Automotive (AAOS)
Android Automotive (AAOS)
API
API
AppGallery
AppGallery
AppStore
AppStore
Battery and Performance
Battery and Performance
Blocker
Blocker
Bookmarks and Tracks
Bookmarks and Tracks
Borders
Borders
Bug
Bug
Build
Build
CarPlay
CarPlay
Classificator
Classificator
Community
Community
Core
Core
CrashReports
CrashReports
Cycling
Cycling
Desktop
Desktop
DevEx
DevEx
DevOps
DevOps
dev_sandbox
dev_sandbox
Directions
Directions
Documentation
Documentation
Downloader
Downloader
Drape
Drape
Driving
Driving
Duplicate
Duplicate
Editor
Editor
Elevation
Elevation
Enhancement
Enhancement
Epic
Epic
External Map Datasets
External Map Datasets
F-Droid
F-Droid
Fonts
Fonts
Frequently User Reported
Frequently User Reported
Fund
Fund
Generator
Generator
Good first issue
Good first issue
Google Play
Google Play
GPS
GPS
GSoC
GSoC
iCloud
iCloud
Icons
Icons
iOS
iOS
Legal
Legal
Linux Desktop
Linux Desktop
Linux packaging
Linux packaging
Linux Phone
Linux Phone
Mac OS
Mac OS
Map Data
Map Data
Metro
Metro
Navigation
Navigation
Need Feedback
Need Feedback
Night Mode
Night Mode
NLnet 2024-06-281
NLnet 2024-06-281
No Feature Parity
No Feature Parity
Opening Hours
Opening Hours
Outdoors
Outdoors
POI Info
POI Info
Privacy
Privacy
Public Transport
Public Transport
Raw Idea
Raw Idea
Refactoring
Refactoring
Regional
Regional
Regression
Regression
Releases
Releases
RoboTest
RoboTest
Route Planning
Route Planning
Routing
Routing
Ruler
Ruler
Search
Search
Security
Security
Styles
Styles
Tests
Tests
Track Recording
Track Recording
Translations
Translations
TTS
TTS
UI
UI
UX
UX
Walk Navigation
Walk Navigation
Watches
Watches
Web
Web
Wikipedia
Wikipedia
Windows
Windows
Won't fix
Won't fix
World Map
World Map
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: organicmaps/organicmaps-tmp#9887
No description provided.