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

I haven't been able to locate a speed key for JOSM's color coding when using "Car" mode for coloring GPX tracks by speed. Where can I find what color corresponds to what speed?

asked 08 Jan '12, 07:51

Baloo%20Uriza's gravatar image

Baloo Uriza
3.2k143061
accept rate: 9%

Rationale: I'm looking to update the "maxspeed" rendering style for JOSM to support the full range of US speed limits, and to get color consistency with GPX rendering.

(08 Jan '12, 07:52) Baloo Uriza

You find the relevant section of code here.

The default color is HSB((v / 45 * 300), 1, 1) where v is the speed in m/s.

permanent link

answered 08 Jan '12, 08:30

Gnonthgol's gravatar image

Gnonthgol ♦
13.8k16103198
accept rate: 16%

edited 17 Jan '12, 04:50

Baloo%20Uriza's gravatar image

Baloo Uriza
3.2k143061

Hmm, could I get an example of how to calculate that? I definitely appreciate the comprehensive answer, but not sure how to use it.

(09 Jan '12, 14:52) Baloo Uriza
3

OK, I stumbled into what the HSB is by accident. For others trying to find how to figure this out, it's at http://www.tomjewett.com/colors/hsb.html

(17 Jan '12, 04:28) Baloo Uriza
1

The last referenced URL seems to be down now, the most recent internet archive link is https://web.archive.org/web/20190407225549/http://www.tomjewett.com/colors/hsb.html .

(16 Oct '20, 17:32) Richlv

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:

×622
×255

question asked: 08 Jan '12, 07:51

question was seen: 5,500 times

last updated: 16 Oct '20, 17:32

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