WIP: WIP Make major trails more visible than regular ones #5415

Draft
pastk wants to merge 5 commits from pastk-classif-hiking-routes into master
Member

So far just a prototype of case 1. from organicmaps/organicmaps#2185 (comment). Sharing it to discuss the approach / new classification.

The basic idea is to add e.g. highway-path-major for trails which are either popular or physically prominent; any of:

  • members of route=hiking relations
  • has a name
  • has a good quality surface
  • ... good visibility, maybe easy sac_scale, length, other ideas...
    Maybe for the main style it'll be just enough to display routes earlier. My concern with the routes-only approach though is that it will work well in well-mapped areas with wide route networks only (e.g. Europe). But e.g. in Turkey or Russia there could be a few routes mapped for the whole country, hence we need another way to identify major trails (named, good surface, etc.) So for the outdoors style we might split into more types even e.g. highway-path-route / highway-path-major / highway-path...

Following screenshots are just demos showing why a trail is considered "major" - reds are routes, blues are named, greens has a good surface.

highway-path-major

Now questions to discuss and challenges..

We have a lot of subtypes for highway-path and -track already and looks like the most of them are not actually used - they use the same style and only tranlations are sometimes different.

And the way they're matched now is not good.
E.g. a feature highway=path sac_scale=hiking horse=yes bicycle=yes access=permissive bridge=yes will have 5 OM types
highway-path-bicycle highway-path-horse highway-path-hiking highway-path-permissive highway-path-bridge
with exactly same dashed line style. So.. the renderer will render the same line 5 times! (see e.g. organicmaps/organicmaps#5414).

Of course, if there is a route relation we can just add a highway-path-major into the mix. And it's line will be thicker and visible earlier. Still the renderer will attempt to draw all X lines :)

Maybe some of those types we can remap, e.g. bicyle=yes into a cycleway, horse=yes into a bridleway..
@vng are e.g. highway-path-permissive and highway-track-no-access used in the routing?

But what do we do with sac_scale=?

We can double all the types by adding e.g. highway-path-major-hiking highway-path-major-mountain_hiking etc. of course..

Also, how are we going to translate those types?

So far just a prototype of case 1. from https://git.omaps.dev/organicmaps/organicmaps/issues/2185#issuecomment-1614907113. Sharing it to discuss the approach / new classification. The basic idea is to add e.g. `highway-path-major` for trails which are either popular or physically prominent; any of: - members of `route=hiking` relations - has a name - has a good quality surface - ... good visibility, maybe easy `sac_scale`, length, other ideas... Maybe for the main style it'll be just enough to display routes earlier. My concern with the routes-only approach though is that it will work well in well-mapped areas with wide route networks only (e.g. Europe). But e.g. in Turkey or Russia there could be a few routes mapped for the whole country, hence we need another way to identify major trails (named, good surface, etc.) So for the outdoors style we might split into more types even e.g. `highway-path-route / highway-path-major / highway-path`... Following screenshots are just demos showing why a trail is considered "major" - reds are routes, blues are named, greens has a good surface. ![highway-path-major](https://github.com/organicmaps/organicmaps/assets/18434508/21e34210-4256-4985-a9db-9a513b0ffa59) Now questions to discuss and challenges.. We have a lot of subtypes for `highway-path` and `-track` already and looks like the most of them are not actually used - they use the same style and only tranlations are *sometimes* different. And the way they're matched now is not good. E.g. a feature `highway=path sac_scale=hiking horse=yes bicycle=yes access=permissive bridge=yes` will have 5 OM types `highway-path-bicycle highway-path-horse highway-path-hiking highway-path-permissive highway-path-bridge` with exactly same dashed line style. So.. the renderer will render the same line 5 times! (see e.g. https://git.omaps.dev/organicmaps/organicmaps/issues/5414). Of course, if there is a route relation we can just add a `highway-path-major` into the mix. And it's line will be thicker and visible earlier. Still the renderer will attempt to draw all X lines :) Maybe some of those types we can remap, e.g. `bicyle=yes` into a cycleway, `horse=yes` into a bridleway.. @vng are e.g. `highway-path-permissive` and `highway-track-no-access` used in the routing? But what do we do with `sac_scale=`? We can double all the types by adding e.g. `highway-path-major-hiking highway-path-major-mountain_hiking etc.` of course.. Also, how are we going to translate those types?
biodranik (Migrated from github.com) reviewed 2023-06-30 16:46:44 +00:00
vng (Migrated from github.com) reviewed 2023-06-30 16:46:44 +00:00
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#5415
No description provided.