russellporter / openskimap.org

The front end for OpenSkiMap.org.
Apache License 2.0
53 stars 1 forks source link

Improve ski run property merging #100

Open russellporter opened 1 year ago

russellporter commented 1 year ago

If there are multiple sources of ski run properties (way & relations) these are flattened into a single representation to allow for a simpler UX.

The current approach treats all data sources equally. For example: run difficulty is merged by taking the easiest value from the available sources.

A somewhat common case for nordic ski trails is a longer trail, tagged as a relation has piste:difficulty=easy, but one of its ways may be tagged as piste:difficulty=intermediate.

In the case currently we show the whole trail as easy. However, the ways data should be closer to the ground truth, given relations work at a higher level.

The improvement would be to treat the way data as primary, and only fall back to the current strategy if the way doesn't have a difficulty value.