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

New Piste presets #5368

Merged
merged 4 commits into from Oct 7, 2018
Merged

New Piste presets #5368

merged 4 commits into from Oct 7, 2018

Conversation

yvecai
Copy link
Contributor

@yvecai yvecai commented Oct 4, 2018

The preset associated with piste:type=* tag is split into the various piste:type values (downhill, nordic, skitour, sled, etc ...).
This allow a more sensible description of the piste:difficulty=* and piste:grooming:* subtags as their meaning depends on the type of activity.

@yvecai
Copy link
Contributor Author

yvecai commented Oct 4, 2018

Related to issue #5354

@yvecai yvecai changed the title New Piste pressets New Piste presets Oct 4, 2018
Copy link
Collaborator

@quincylvania quincylvania left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @yvecai, thanks for doing this! A few things:

  • I like the specialized keys, but I suggest we keep a generic Piste preset matching the tag "piste:type": "*" for generic features.
  • Go ahead and remove the piste_ prefix from the preset filenames, since they are already categorized under piste/. For example, change presets/piste/piste_downhill to presets/piste/downhill.
  • Instead of organizing the fields under the name of the preset they correspond to, categorize them based on the key. If you have different fields for the same key, add a suffix. This may also let you reuse some fields. For example, change fields/piste_sleigh/difficulty.json to fields/piste/difficulty.json and also use it for the sled preset, and then change fields/piste_skitour/difficulty.json to fields/piste/difficulty_skitour.json
  • The wiki page discourages using piste:type on nodes, so please delete the point geometry.

It'll be great to have these additions once we work out the kinks! Thanks again!

data/presets/presets/piste/piste_sleigh.json Outdated Show resolved Hide resolved
data/presets/fields/piste_skitour/difficulty.json Outdated Show resolved Hide resolved
data/presets/fields/piste_skitour/difficulty.json Outdated Show resolved Hide resolved
@yvecai
Copy link
Contributor Author

yvecai commented Oct 4, 2018

Thank you for reviewing, all this make sense. I will make those changes in a few days.

@yvecai
Copy link
Contributor Author

yvecai commented Oct 6, 2018

Commit 3296176 should cover it all.
The generic piste preset has been renamed 'Winter Sport Pistes' to cover all practices.

@yvecai
Copy link
Contributor Author

yvecai commented Oct 6, 2018

Ah, sorry for this last minute change, I forgot to have a look at relations.

@bhousel bhousel merged commit 99ef75c into openstreetmap:master Oct 7, 2018
@bhousel
Copy link
Member

bhousel commented Oct 7, 2018

Looks great, thanks @yvecai 👍

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

Successfully merging this pull request may close these issues.

None yet

3 participants