NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hello

I would like to know if it is possible from OSM to create a map with road (not track) with a gradient color about how much the slop is. For example: color from 3% to 20% per 20m.

I live in a place where it is very flat and I am looking to train more for climbing montain on my bike. I know few climb but I want to discover more.

I would love to have all road colored like this for example: https://help.locusmap.eu/public/attachments/54070186b043d0995b7137703d3b6e3f.png

asked 16 May '22, 09:29

n3b's gravatar image

n3b
11112
accept rate: 0%

edited 17 May '22, 10:52

SK53's gravatar image

SK53 ♦
28.1k48268433

Do you have access to the slope data or are you hoping to infer it from elsewhere? https://www.openstreetmap.org/way/232211240 looks like one of your roads and it appears that the slope information isn't in OSM.

(16 May '22, 09:52) SomeoneElse ♦

I though OSM have elevation data :/ Maybe instead do something base on https://wiki.openstreetmap.org/wiki/Key:incline ?

(16 May '22, 11:00) n3b
3

OSM doesn't have elevation data. The incline tag and similar is rarely used. You almost certainly want to look at SRTM or one of its many derivatives.

(16 May '22, 11:03) Richard ♦

Looks like other people have tried that before. E.g. https://ropensci.github.io/slopes/articles/roadnetworkcycling.html looks like a comprehensive guide how to accomplish your task.

(I haven't tried it myself. Just found it by googling)

permanent link

answered 16 May '22, 22:47

TZorn's gravatar image

TZorn
12.3k764225
accept rate: 15%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×65
×7
×1

question asked: 16 May '22, 09:29

question was seen: 2,799 times

last updated: 17 May '22, 10:52

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum